.gridcss { background:Red; color:White; }
Protected Sub gvdata_RowDataBound(sender As Object, e As GridViewRowEventArgs) If e.Row.RowType = DataControlRowType.DataRow Then e.Row.Cells(3).CssClass = "gridcss" End If End Sub
for (int i = 0; i < gridview1.Rows.Count; i++) { gridview1.Rows[i].Cells[gridview1.Columns.Count - 1].BackColor = Color.Red; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)