How to increase grid Column width

Posted by Abhisekjani under ASP.NET on 9/3/2012 | Points: 10 | Views : 1291 | Status : [Member] | Replies : 1
Hi
In my grid 4 columns there,in one columns the name containing 26 character but in my page it shows only few character,i want to the grid should show all the character i have increased the Item style width to 500px but it not showing the full character

please help me out

Thanks
Abhisek




Responses

Posted by: Gopesh9 on: 9/3/2012 [Member] Starter | Points: 25

Up
0
Down
You can programmetically set the width by...

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

G. S.
.Net Developer

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

Login to post response