Datagrid Scrollbars not working

Posts   
 
    
ToadFace
User
Posts: 4
Joined: 15-Mar-2005
# Posted on: 17-Mar-2005 22:38:26   

This may not be related to LLBLgen, but I haven't seen it until I started using LLBLgen.

I have a collection that is bound to a datagrid.

The datagrid displays correctly with scroll bars, but the scroll bars are disabled. If I resize the form, the scroll bars magically become enabled.

Thanks for any suggestions...

ToadFace
User
Posts: 4
Joined: 15-Mar-2005
# Posted on: 17-Mar-2005 22:41:52   

Sorry, I probably should have posted this in the "Databinding and Gui controls" forum.

ToadFace
User
Posts: 4
Joined: 15-Mar-2005
# Posted on: 17-Mar-2005 23:28:43   

Here's a followup on what I've discovered...

I actually have several grids, each placed on different tabs in a tab control. The tab control is inside a panel.

If I set the panel.enabled = false, bind the data, and then set the panel.enabled = true, I get the strange scroll bar behavior. What's even stranger is that not all the grids are afflicted with the problem.

If I set the panel.enabled = true before I bind the data all appears well.

Just thought I'd pass that on.......

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 18-Mar-2005 11:47:17   

ToadFace wrote:

Here's a followup on what I've discovered...

I actually have several grids, each placed on different tabs in a tab control. The tab control is inside a panel.

If I set the panel.enabled = false, bind the data, and then set the panel.enabled = true, I get the strange scroll bar behavior. What's even stranger is that not all the grids are afflicted with the problem.

If I set the panel.enabled = true before I bind the data all appears well.

Just thought I'd pass that on.......

Good info. The databinding isn't really teh issue here I think, it's the controls themselves who don't behave properly when the parent control's enable flag is set. It's always a joy using .NET winforms controls wink

Frans Bouma | Lead developer LLBLGen Pro