asp.net - How do you read a gridview cell's set background color? -
i need alter gridview cell's color depending on color of gridview cell. how can read background color value of specific cell? i'm trying in rowdatabound event...
dim color string = e.row.cells(0)????
edit
i need read cell background color in rowdatabound event when background color set in markup so:
css
.gridviewrowstyle { background-color: #e6b9b8; color: #000000; font-weight:bold; } .summarygridviewstyle { width: 100%; border: 2px solid #000000; }
markup
<asp:gridview id="grdsummary" runat="server" ondatabound="grdsummary_databound" onrowdatabound="grdsummary_rowdatabound" autogeneratecolumns="false" gridlines="none" horizontalalign="center" cssclass="summarygridviewstyle" > <rowstyle cssclass="gridviewrowstyle" />
...
get using ...
e.row.cells(0).backcolor
asp.net vb.net gridview
No comments:
Post a Comment