F
Fabrício de Novaes Kucinskis
Hi all,
I have to problems concerning datagrids, tabcontrols and scrollbars:
1) I created a form with a TabControl. This TabControl has two TabPages: the
first with a datagrid to browse database records and the second with some
controls
(TextBoxes, OptionButtons...) to edit these records. When the second tab is
shown and I use the DataGrid's SetDataBind method, the grid scrollbars are
disabled.
2) Another problem is that the scrollbars appears in the middle of the grid
when loading the form. Its position are corrected when the user clicks the
grid, but I could'nt do this programatically. I tried to clear the datagrid
controls collection (DataGrid.Controls.Clear), but doing this the scrollbars
disapears, and its area are not repainted.
Does anyone knows how to solve these problems?
Thanks in advance,
Fabrício de Novaes Kucinskis.
I have to problems concerning datagrids, tabcontrols and scrollbars:
1) I created a form with a TabControl. This TabControl has two TabPages: the
first with a datagrid to browse database records and the second with some
controls
(TextBoxes, OptionButtons...) to edit these records. When the second tab is
shown and I use the DataGrid's SetDataBind method, the grid scrollbars are
disabled.
2) Another problem is that the scrollbars appears in the middle of the grid
when loading the form. Its position are corrected when the user clicks the
grid, but I could'nt do this programatically. I tried to clear the datagrid
controls collection (DataGrid.Controls.Clear), but doing this the scrollbars
disapears, and its area are not repainted.
Does anyone knows how to solve these problems?
Thanks in advance,
Fabrício de Novaes Kucinskis.