I am new to Infragistics testing the basics of it. I would like to know how to populate an UltraDataSource dynamically please ? This UltraDataSource is going to be the source for my UltraTree afterwards. The UltraDataSource structure is determined at the beginning, but I would like to access its data structure outside the InitializeComponent() method so I can populate it dynamically with my out dataset. Any help would be greatly appreciated. Also, do you know where I can find some documentation about the UltraDataSource object's structure please ?
Thank you in advance
Thank you for posting in our forum.
If I understand you correctly you need to populate UltraDataSource with data from your DataSet. Please note UltraDataSource has no quick method to do this. You would have to copy all of the data by iterating each table and each table’s row. But the idea of using UltraDataSource is to load data directly from your back end data source. If you have the data set loaded in the memory you can directly bind it to your UltraTree. More about this you may find in this form thread http://www.infragistics.com/community/forums/t/1618.aspx
Additional information regarding UltraDataSource you may find in the next link http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=WinDataSource.html
Please let me know if you need any further assistance.
I am just checking about the progress of this issue. Let me know if you need my further assistance on it.
Thank you for using Infragistics Components.
Hi Milko,First thanks a lot for looking at my request and apologies for my late reply I am very busy with various things but extremely interested to find a way to populate my UltraDataSource. Unfortunately I cannot feed it directly from a database (if that is what you meant?) because my data have to actually be computed before (maths calculations) and sorted out so I can actually build a proper dataSource (which object would you recommand by the way?) that would simply serve as a source for my UltraDataSource writting UltraDataSource.SourceData = myOwnComputedDataSet;My assumption is that taylor building this dataSet alone could be quite time and lines consuming which I think is not the idea of this component but if it allows to be fed this way then I could start looking at a way to build my own dataSet to feed my UltraDataSource (could you help on the structure of the UltraDataSource itself maybe?)I am actually in my trial period of Infragistics and got into it because Infragistics seemed to be the only company proposing this graphical component that I definitely need. Being simply able to do this would of course convince me to buy a licence. I know the graphical suite proposed can be very powerful but I am new to it and cannot find much documentation about it (could you show me where the documentation is please?). Also, I would rather use the forum to be sure I intend to use the components the way they have been thought and designed. I do not want to enter into terrible coding to achieve this since I assume this ultraDataSource must be a quite straigth forward component to feed.Again thanks for your time and your help.Kind regards,Victor
Thank you for your feedback.
Can you please give me a little more information about your scenario:
Why you cannot populate directly UltraDataSource with data? You wrote that you perform some calculations and sorting over the data. Where these calculations are made?. Please note when you finish these operations you can add the data in several ways in your UltraDataSource – you can use Add or Insert methods, you can load on demand via CellDataRequested event, or you can use some of the overloads of SetCellValue method.
Do you have a DataSet holding the information you need to populate in your UltraTree? I have understood from your first post that you have such DataSet and you need to convert it to UltraDataSource. Is this correct?
How exactly you are getting your data from your database and where you are storing it in your application? Is this data read-only or you will need to update it through your application?
Please check the following link when you can find information about how to use UltraDataSource http://help.infragistics.com/Doc/WinForms/current/CLR4.0/?page=Win_WinDataSource_Using_WinDataSource.html
Waiting for your feedback.
I am following up to ask whether or not if you have any additional questions with our UltraDataSource? If so, please let us know so we can assist you further.
Thank you for using Infragistics Controls.