Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai i am using Gride view in the grid view row "Reopen "means i need to change the color How to change Please Help me Below is my code.

VB
Protected Sub CallDGV_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles CallDGV.RowDataBound
       If e.Row.RowType = DataControlRowType.DataRow Then

           Dim RowType As String = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "Status"))

           If RowType = "Reopen" Then
               e.Row.BackColor = System.Drawing.Color.Red
           End If

       End If


   End Sub
Posted

1 solution

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900