You need to read about adding DataGridColumnStyles to your grid. With these,
you can specify a specific width for the columns.
Basically, you want to create a DataGridTableStyle, add DataGridColumnStyle
derived objects for each column (either DataGridBoolColumn or
DataGridTextBoxColumn, or one of your own custom DataGridColumnStyle derived
objects). Set the HeaderText and MappingName of the styles and then set the
width. Don't forget to set the MappingName property of the table style as
well.
Then add this DataGridTableStyle to the TableStyles collection of the grid.
Good luck.
Pete
"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
Thank you, that is an informative web site. However, I'm still not sure
where to set the column width. The example uses a click button event. I
just want the grid to come up at the size I specified. I put this in the
designer grid property and also at the loadup time and it still not
working.
Thanks, Alpha
"Pete Davis" wrote:
See >I set the GridColumn style for each of the column=100 but after I run
>the
> application it's set back to the original 75. I do this in the
> designer
> window's property area. Do I need to add code to set the column width
> at
> loading time for it to work?
>
> Thanks, Alpha
>
Go here: http://www.syncfusion.com/FAQ/Window...efault.aspx#44
And read FAQ #5.35
Pete