write code in the rowdaatbound event of the gridview
some like
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewRowEventArgs) Handles
GridView1.RowDataBound
if e.Row.RowType=DataControlRowType.DataRow then
Dim drv As DataRowView = CType(e.Row.DataItem, DataRowView)
if(drv("namecolumnX")="flag1" then
e.row.cssclass="csshighlight"
endif
endif
end sub
hope this works for you
greetings,
Sergio E.
"-Steve-" <nn**@dosomethingwiththis.miisconsultant.comescrib ió en el
mensaje news:uN**************@TK2MSFTNGP03.phx.gbl...
>I have the need to change the text of certain rows to red based on the
proximity of a date in one of the columns. What's the best way to go about
this?