TypedList and SetDataBinding call

Posts   
 
    
rparkins
User
Posts: 66
Joined: 04-May-2005
# Posted on: 13-Aug-2007 13:33:15   

Hi

I am using some 3rd party datagrids from infrgistics and their forum is rubbish (unlike this) so wanted to ask a quickie regarding typedlists (I am using the latest version 2 of llblgen)

I need on their grid to setDataBinding to hide columns!! and I am using this piece of code:

ObjectTypedList list = ObjectManager.Search(new ObjectSearchParams()); ultraGridObjects.SetDataBinding(list.DataSet, list.TableName);

However the Dataset is null, however I know their are 2 rows in the list. Is the DataMember of the typedlist the TableName property? I resume that this call is the same as the default gridview that is shipped with .NET 2?

I hope this makes sense and apologies if it doesn;t, hope someone could steer me in the right direction, I have used the following call without success and it throws an exception.

ultraGridObjects.SetDataBinding(list, list.TableName);

Many thanks

Richard

ggpnet
User
Posts: 21
Joined: 07-Apr-2005
# Posted on: 13-Aug-2007 15:12:35   

I think this is the way:

ultraGridObjects.SetDataBinding(list, string.Empty);

or

ultraGridObjects.SetDataBinding(list.DefaultView, string.Empty);

You don't need the Table Name because the TypedList is like a DataTable.

Regards Gianfranco

rparkins
User
Posts: 66
Joined: 04-May-2005
# Posted on: 14-Aug-2007 10:41:19   

Hi Gianfranco

Thanks for your reply, both these methods do in fact display the 2 rows I believed I had, however (there is always a however) all columns are now returned as if I just set the datasource directly. It may be time for me to speak to these 3rd party guys direct (infragistics) and ask them what is happening, still no response on the forum! In the meantime I will do a quick test with the default grid and see if I can get that working, at least I can then go back to them with a real live exmaple..

As always, first rate replies and fast responses which lead me to recommend the llblgen suite to all my clients.

Many thanks

Rich smile

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 14-Aug-2007 11:17:05   

We will be waiitng for your test and for their feedback. In the meantime you may also try using an LLBLGenProDataSource and bind it to the 3rd party grid.