|
-
Jan 31st, 2013, 05:45 PM
#1
Thread Starter
New Member
multiple DataGridViews (one per tab) what is proper architecture?
I have a form that will have a tab page. Each tab page will correspond to a ClassID from a datatable.
When the form is loaded, I will obtain a datatable of the distinct ClassID values from the table. The count of distinct ClassIDs can change.
I have built this and it was working in IDE but not as a compiled executable. I was getting a lot of reentrant errors from my DataGridViews.
For each of the rows in the datatable (one for each ClassID) I want to
-obtain a new DataTable from a stored procedure (this part works)
-add a new tab page
-add a DataGridView
-display the stored procedure DataTable in the datagridview
What is the correct way to do this?
I am assuming I need to use BindingSource objects with a DataSource of the stored procedure DataTable. Should the BindingSources be part of a collection?
Last edited by wwagnon; Jan 31st, 2013 at 05:57 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|