Grid, Binding, Columns

Posts   
 
    
radasys
User
Posts: 6
Joined: 18-Nov-2004
# Posted on: 21-Nov-2004 21:52:57   

Hi !

How can I hide columns (properties) when I bind the collection to the grid. I have properties like ID or createUser, createDat. Where do i have to set those properties. I am new to llblgen. In mygeneration i just made new abstract classes. Can I change the entityclasses to set these properties using methods ? Your examples with the northwind are to easy. All columns used in the grid. No hidden columns with calculated values . Maybe you can give me a short example the best way doing this. How can I filter, sort the grid ? cancel update, undo a row ? flushed

Thanks for your help.

Thomas flushed

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Nov-2004 10:08:52   

Create a table style and only define a couple of columns. (doesn't work in infragistics, there you have to hide the columns manually) Sorting: set SupportsSorting to true and the grid will allow you to sort. Cancel update: press ESC.

Frans Bouma | Lead developer LLBLGen Pro
Herwig avatar
Herwig
User
Posts: 2
Joined: 22-Nov-2004
# Posted on: 22-Nov-2004 18:53:39   

Hi Otis,

when I try to bind a collection at design time to the datasource property of an infragistics grid, the columns will not show up! confused

The same with the standard grid, works!

What can I do?

Greetings Herwig

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Nov-2004 21:09:53   

I noticed that too (at least in teh webgrid), and I have no idea why it doesn't work, I'm sorry.

Frans Bouma | Lead developer LLBLGen Pro
jeffreygg
User
Posts: 805
Joined: 26-Oct-2003
# Posted on: 23-Nov-2004 20:03:28   

Herwig: Are you using WinGrid or WebGrid? I have some experience with WinGrid and the entity collections...You won't be able to use the designer to bind the entity collection to the grid, but setting the datasource property of the grid to the entity colllection and calling DataBind() should work without a problem.

Jeff...

Fishy avatar
Fishy
User
Posts: 392
Joined: 15-Apr-2004
# Posted on: 23-Nov-2004 20:21:03   

BTW,

The Infragistic grid will traverse the entire entity collection. To prevent this, set the MaxBandDepth to 1.

Herwig avatar
Herwig
User
Posts: 2
Joined: 22-Nov-2004
# Posted on: 27-Nov-2004 14:05:11   

Hi Jeff,

I use both IG webgrid and the IG wingrid. The infragistics wingrid works perfectly, (MaxBandDepth set to 1) but the webgrid does not have any MaxBandDepth-option!

No solution yet!

Herwig

alexdresko
User
Posts: 336
Joined: 08-Jun-2004
# Posted on: 16-Dec-2004 16:43:58   

Herwig wrote:

Hi Jeff,

I use both IG webgrid and the IG wingrid. The infragistics wingrid works perfectly, (MaxBandDepth set to 1) but the webgrid does not have any MaxBandDepth-option!

No solution yet!

Herwig

Found it (I think). Try setting DisplayLayout->ExpandableDefault (in the designer) to "No". It prevents the grid from traversing the datasource, but there's an extra little box now to the left of the row selector boxes...