Progamatic set the Grid Coloum Width [Resolved]

Posted by Lalitha86 under C# on 8/22/2012 | Points: 10 | Views : 856 | Status : [Member] | Replies : 1
How do i set the Fix coloum width for the Gridview in with the coloum are auto generated




Responses

Posted by: Gopesh9 on: 8/22/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
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;
}


I hope this will help you...

G. S.
.Net Developer

Lalitha86, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response