G
Guest
Hi!
In a windowsapplication i have a datagrid where I dont want the vertical
scrollbar to be visible. I can't find HorizontalScrollBar and
VerticalScrollBar properties anywhere.
I've tried to create controls for this... without luck. Here is the code
I'm using. Please tell me what I'm doing wrong.
this.InitializeScrollBar(DataGrid1)
....
// Initialize scrollbar for datagrid
private void InitializeScrollBar(DataGrid drg)
{
VScrollBar vScrollBar1 = new VScrollBar();
vScrollBar1.Visible = false;
drg.Controls.Add(vScrollBar1);
}
Any help appreciates.
--- < Hans > ---
In a windowsapplication i have a datagrid where I dont want the vertical
scrollbar to be visible. I can't find HorizontalScrollBar and
VerticalScrollBar properties anywhere.
I've tried to create controls for this... without luck. Here is the code
I'm using. Please tell me what I'm doing wrong.
this.InitializeScrollBar(DataGrid1)
....
// Initialize scrollbar for datagrid
private void InitializeScrollBar(DataGrid drg)
{
VScrollBar vScrollBar1 = new VScrollBar();
vScrollBar1.Visible = false;
drg.Controls.Add(vScrollBar1);
}
Any help appreciates.
--- < Hans > ---