Programmatically set the width of the GridView Column

Gopesh9
Posted by Gopesh9 under ASP.NET category on | Points: 40 | Views : 5169
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{ e.Row.Cells[1].Width = 1;
e.Row.Cells[0].Width = 1;
e.Row.Cells[4].Width = 75;
e.Row.Cells[5].Width = 1;
}

Comments or Responses

Login to post response