I need to change the padding for a single column in an ASP.NET GridView, while all other CSS attributes defined in the external CSS file should be left untouched. How can i do this?
Thanks in advance!
Update: Below is my code that solved the problem:
protected void gvwMaster_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[0].Attributes.Add("style", "padding:0");
}
source
share