Hi Richard,
Thanks for your reply!
I'm sorry for misunderstanding the issue. After my researching, if you want
to change the color of the cell border in the GridView control, I suggest
you use the CSS to do. We can use the RowDataBound event to set the color
for the control. Below code demonstrates how to do:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
foreach (TableCell tc in e.Row.Cells)
{
tc.Attributes["style"] = "border-color:red";
}
}
I hope the above information will be helpful. If you have any issues or
concerns, please let me know. It's my pleasure to be of assistance
Regards,
Yuan Ren [MSFT]
Microsoft Online Support
|