Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Column Width?

Status
Not open for further replies.

almi

Programmer
Jun 19, 2001
16
0
0
YU
I will sound stupid for sure, but i must ask this question.
How can I set the grid column width from code?

ALMI
 
Hi,

I searched a solution for this one myself... Finally I discovered that you have to use a DataGridTableStyle. First you define such a style (set the properties for each column) and the you apply this style to your datagrid. For some more info, see the MSDN or this link :
Hope this helps,
Jan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top