views:

199

answers:

1

Hi all,

I have a forms application, showing results of several DataTables into several DataGridViews, each appearing in a different tab of an application.

I've noticed weird behavior when I reload the data (a single button invokes filling all DGVs from the matching DTs): DGVs with a lot of rows (which require vertical scrolling) which are not shown (only one is shown since they are in a tab control) don't have their scroll bars after the data fetch. But a window resize will show the scroll bars though...

I've tried forcing a dgv.Refresh() on each DGV after the dgv.DataSource = dt, but no luck.

Any input will be appreciated.

Cheers!

A: 

Hi.

Maybe this after populating it?

dgv.ScrollBars = ScrollBars.Vertical;

Hope it helps, if not, could you show us how you're populating them?

Thanks.

lb
Hi Leo,The population is done by an assignment of a typed DataTable to the DGV's data source. The Srollbars property is set to Both...
Shay