iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
When loading data on demand in a grid that has several nodes and the user clicks on one of these minus boxes, then the node should open and the next level of data be displayed.
For that is the InitializeSelfReferenceDataSource event. The parameter e.DataSource is read-only. Therefore the sample (in the documentation of this event) simply casts the e.DataSource into a DataTable. Then a DataAdapter fills in the data.
How would this work when I only have an existing DataSet? I also tried to cast the e.DataSource to a DataTable and assigned the existing DataSet.Table(0) to that DataTable. But the grid doesn't get the data somehow.
I also tried to copy the rows in a foreach loop, but I get a runtime error saying the rows belong to different tables.
If I don't have a DataAdapter, only a DataSet, how would this event fetch the data for the grid?
I solved this myself in the meantime. It is only partially related to WebGrid.
Here's the example:
Dim ds As DataSet = ... 'data to add Dim dt As DataTable = CType(e.DataSource, DataTable) dt.Merge(ds.Tables(0), True, MissingSchemaAction.Error)
Glad to hear that you’ve found a solution of your problem and share it with us.
Thank you very much for your contribution in our community forum. Should you find any other questions, suggestions, or problems regarding our products, please feel free to post them in our forum.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname