I have a datagrid that is switches between 2 different datasources.
I set the anchor properties of my datagrid to for bottom, top, left , right.
My form is set ot maximize on open.
If the user resizes the form, the scrollbars that should be visible on the
datagrid are not.
Occasionally the scrollbars disappear when the form is maximized when
switching between 2 differnet datasources but not always.
Any thoughts?
DataGrid2.Table Styles.Clear()
DataGrid2.Suspe ndLayout()
'fill dataset activities
DataGrid2.DataS ource = dv1
DataGrid2.Resum eLayout()
DataGrid2.Ancho r = CType(((System. Windows.Forms.A nchorStyles.Top Or
System.Windows. Forms.AnchorSty les.Left) _
Or
System.Windows. Forms.AnchorSty les.Right), System.Windows. Forms.AnchorSty les)
DataGrid2.Updat e()
I set the anchor properties of my datagrid to for bottom, top, left , right.
My form is set ot maximize on open.
If the user resizes the form, the scrollbars that should be visible on the
datagrid are not.
Occasionally the scrollbars disappear when the form is maximized when
switching between 2 differnet datasources but not always.
Any thoughts?
DataGrid2.Table Styles.Clear()
DataGrid2.Suspe ndLayout()
'fill dataset activities
DataGrid2.DataS ource = dv1
DataGrid2.Resum eLayout()
DataGrid2.Ancho r = CType(((System. Windows.Forms.A nchorStyles.Top Or
System.Windows. Forms.AnchorSty les.Left) _
Or
System.Windows. Forms.AnchorSty les.Right), System.Windows. Forms.AnchorSty les)
DataGrid2.Updat e()
Comment