S
scorpion53061
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.TableStyles.Clear()
DataGrid2.SuspendLayout()
'fill dataset activities
DataGrid2.DataSource = dv1
DataGrid2.ResumeLayout()
DataGrid2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or
System.Windows.Forms.AnchorStyles.Left) _
Or
System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
DataGrid2.Update()
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.TableStyles.Clear()
DataGrid2.SuspendLayout()
'fill dataset activities
DataGrid2.DataSource = dv1
DataGrid2.ResumeLayout()
DataGrid2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or
System.Windows.Forms.AnchorStyles.Left) _
Or
System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
DataGrid2.Update()