Tag Archives: GridView RowDataBound Event

How to highlight sorted column of a GridView control in ASP.NET

In this article I will explain how to highlight sorted column of a GridView control in ASP.NET Introduction In this article I will explain how to highlight or select the column of an ASP.NET GridView control whose header has been clicked for sorting Step 1: Create a new ASP.NET Web Application and drag a GridView… Read More »

How to change the background color of rows in a GridView based on the value of a column in ASP.NET 3.5

Introduction: This article will explain you how to change the background color of the GridView rows to red if the value of “List Price” field is greater than 1000. Steps 1: Create a new ASP.NET Web Application Step 2: Insert a ConnectionString in the Web.config file [sourcecode language=”xml”] <connectionStrings> <add name="conString" connectionString="Data Source=.\SQL2005Express; User Id=sa;… Read More »