Jul 2, 2002 #1 CookieNZ MIS Apr 22, 2002 48 NZ Has anybody successfully been able to preset the widths of certain columns in a datagrid? If so, how have you done it?
Has anybody successfully been able to preset the widths of certain columns in a datagrid? If so, how have you done it?
Apr 28, 2003 1 #2 Debeast Programmer Jul 18, 2002 28 GB I found out after a looooooooooong time here you go: Dim DGStyle = New DataGridTableStyle() DataGrid.TableStyles.Add(DGStyle) DGStyle.MappingName = "yourtablesnamegoeshere" DGStyle.GridColumnStyles(0).width = 400 DGStyle.DataGrid.Refresh() NB: my datagrid is called datagrid Upvote 0 Downvote
I found out after a looooooooooong time here you go: Dim DGStyle = New DataGridTableStyle() DataGrid.TableStyles.Add(DGStyle) DGStyle.MappingName = "yourtablesnamegoeshere" DGStyle.GridColumnStyles(0).width = 400 DGStyle.DataGrid.Refresh() NB: my datagrid is called datagrid