DataBinding and Infragistics

DataBinding and Infragistics

Old forum URL: forums.lhotka.net/forums/t/3898.aspx


elfstoneUK posted on Thursday, November 15, 2007

Ladies and Gentleman your help again please.

Our prototype is taking shape and we have decided to use the CSLA V2.1.4 for our project. At the same time we have also decided to use Infragistics controls for the front-end.

I have done a search of this Forum for previous questions but it doesn't answer my question. But I understand I should be looking to use CSLA V3.0 instead as this has some bug fixes in the databinding area.  So, my question is:

Can I databind the business objects with Infragistics controls in the same way I can with the Microsoft controls?

Has anyone done this, if so can you tell me how? Are there any gotchas?

Thanks for reading.

 

ajj3085 replied on Thursday, November 15, 2007

Yes, I'm using Infragistics controls and databinding.  Also, you'll want to be on the latest version of Csla 3, as those are the only ones that have the binding issues fixed. 

The only gotcha applies to standard grid databinding; each object in a collection must return a unique (within the collection) value from GetIdValue, or the grid will get confused.

reagan123 replied on Thursday, November 15, 2007

Can someone briefly describe the issues or point me to an article that talks about databinding issues with the Infragistics grid or with databinding in general?

I'm still new to this and trying to learn as much as I can.

Thanks.

elfstoneUK replied on Friday, November 16, 2007

ajj3085, thanks for your reply.

Could you tell me how exactly to do this please? I'm new to Infragistics and the CSLA.

What I usually do for Windows is :

1. Create the BO

2. From Data Sources (in VS 2005) drill down to find the BO.

3. Select (turn off what I don't require) and drag and drop the object onto the WinForm/User control

4. Test

What is the procedure with Infragistics?  How does the UltraDataSource fit into this?

Any help is welcome? Big Smile [:D]

Thanks for reading

 

ajj3085 replied on Friday, November 16, 2007

I don't use the UltraDS, just the standard BindingSource.  then I just go to the properties of the BS and open the DataSource drop down and pick my collection class.  Finally, I set the grid's DataSource to the bindingsource component, and tweak the grid settings from there.

elfstoneUK replied on Sunday, November 18, 2007

Ok, thanks ajj for the info. I shall try this tomorrow (when in work). I'll let you know. Big Smile [:D]

elfstoneUK replied on Monday, November 19, 2007

ajj, it works. Thanks for your help. Big Smile [:D]

 

DeanB replied on Thursday, November 15, 2007

Ok,

First congratulations on choosing Infragistics.  I started using them years ago and have been very pleased.  I don't want to presume anything but I can't stress enough how important it is that you go through their on demand training course.  You can purchase it directly on their site.  infragistics.com.  I completed both the ASP.Net and Win.Net versions.  The documentation alone that accompanies the training is worth the cost.  Its only a few hundred dollars anyway.  It will save you lots of hours.  I can't believe I didn't do it sooner. 

Now if Active Reports would do the same...........

Good Luck.

 

Copyright (c) Marimer LLC