AD
Administrator
Syncfusion Team
January 25, 2005 07:40 AM UTC
>>this.grdDateNames.Model.ColWidths[0]
0 is the row header column. Is that the column whose width you are trying to set? Try setting the width on col 1 to see if that has an effect.
>>this.grdDateNames.Model.ColStyles["name"].DropDownStyle
In a GridDataBoundGrid, you use the GridBoundColumn.StyleInfo to set column styles, not the ColStyles collection. So, try setting these styles on the GridBoundColumn. You access teh GridBoundColumns through the grid.Binder.InternalColumns collection only if you have not explicitly added GridBoundColumns to the grid.GridBoundColumns collection either through the designer or through code.