Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we increase the column width (spacing) of Gridview at Run-time.
You can see the my problem in the image:
You can visit this link to view the Image (problem).

http://rapidshare.com/files/452538287/Untitled.jpg[^]
Posted
Updated 14-Mar-11 8:15am
v2
Comments
Wendelius 14-Mar-11 14:16pm    
Corrected the link formatting + few minor changes

You may go to the design mode and in the properties of the gridview, set it here -

Styles >> HeaderStyle >> Width


HTH
Rajeev


Please vote and mark the answer as accepted if this helps.

 
Share this answer
 
You should insert the following code after your data bind in your grid

grdResult.Columns[4].ItemStyle.Width = 200;


Best Regards,
Theingi Win
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900