Is there an example to iterate through two datatables using the rows.add method to load the UltraDataSource with two or more bands that will be bound to a UltraWinGrid. Can you set a relationship between the two bands or is this a funtion of how you populate it?
Hi Mike,
Thanks for the answers but I figured it out.
Regards
Ronny
Hi Ronny,
I'm not sure what you are asking here.
If you have two tables, and you want to show them as parent/child in the UltraWinGrid, then the easiest way to do that is to use the DataSet object.
You could populate an UltraDataSource with the same data up front, or you could use the UltraDataSource in a load-on-demand mode. But both of these approaches will require more code and won't gain you very much.
I have the same problem so I have two MSaccess tables that I would like to use to fill a windatasource with a band and childband. How would you suggest to do this. The reason that I do this is that the datasource of the windatasource can change at runtime and this is the only way that I could easily resolve this.
Thanks for to your quick answer.
Mike,
Your patience and thoughtfulness is always appreciated!
Thank You,
The Uncomplaining Many
I must admit I am confused by this response. Are you really suggesting that I should not ask questions?
The question posted here is pretty specific. The OP asked if there are any samples of this, and I responded that I don't know of any.
I've been providing developer support for quite a long time, and in my experience, when people ask how to do something that doesn't really make much sense, it's usually because they are trying to acheive a goal and doing it the hard way. So when I see a question about doing something that is inefficient, wastes memory, and has no obvious benefits, I ask for more information. I'm not asking because I am trying to be cryptic. I am asking because if the poster responds with WHY they are doing it, I will very probably be able to point out a better way or an alternative solution which will save them lots of time and effort and make their application better.
Sometimes I am wrong. Sometimes they are doing it for a very good reason. And in that case, I will continue the discussion along those lines and try to help. But what I try to avoid is typing up long, detailed explanations of how to do inefficient, time-consuming, memory-wasting tasks with no obvious advantages. That's just a waste of everyone's time.
Would you prefer that I simply answer the question as asked without bothering to dig any deeper, even if I suspect a developer might be going down the wrong track and I might be able to save him some time? Would you prefer that I typed up a 5 page list of every possible way to copy a DataTable into am UltraDataSource, even though doing so is probably not a good idea and takes up time I could better spend doing other things?
Personally, I prefer to get to the heart of the issue and provide sound advice.The more information I have, the better able I am to provide advice and potential solutions - so I ask a lot of questions to make sure I have a clear picture before I spend time writing up answers that only cause more confusion.
Of course, if you are not happy with my responses, please feel free to ignore them and submit your questions to Infragistics official developer support. Here's a link:Submit an incident to Infragistics Developer Support.