Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing an application in which i have to bind data table with a grid view and i want to change width of columns of data table and that also from a .cs flie how can i do that?
Posted
Comments
fjdiewornncalwe 26-Oct-12 13:39pm    
Why not do it with a TemplateColumn in the markup?

1 solution

 
Share this answer
 
Comments
Rajan Shuklan 27-Oct-12 0:33am    
But AutoGenerateColumns is false and i have to make changes in .cs file only.
Sandeep Mewara 27-Oct-12 1:36am    
in cs file, find the column and you have width property exposed. Autogeneratecolumn part can be ignored.

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