Hi Vinish,
Thank you for your reply. The dashboard samples that you linked to are not bound to a strongly-typed dataset, so I don't think they are directly relevant. I re-wrote my code a bit so you can see all the steps. To rehash, I'm trying to bind two different gridgroupingcontrols (gridGroupingControlAssign & gridGroupingControlAssignVW) to two different tables in my dispatchDS dataset. This dataset was automatically created using the visual studio tools after pointing it to two of tables in my MS SQL database.
I've attached a zip file with images of what happens when I try to run my application with the below code. Capture1 shows the problems, and Capture2 shows what the application should look like. As you can see, I'm just simply trying to use two gridgroupingcontrol side by side on one form.
DataAccess.DispatchDataset dispatchDS = new DataAccess.DispatchDataset();
private BindingSource bindingSourceAssignVW = new BindingSource();
private BindingSource bindingSourceAssign = new BindingSource();
gridGroupingControlAssignVW.DataSource = bindingSourceAssignVW;
gridGroupingControlAssign.DataSource = bindingSourceAssign;
DataAccess.DispatchDatasetTableAdapters.ASSIGNMENTSTableAdapter AssignmentsAdapter = new DataAccess.DispatchDatasetTableAdapters.ASSIGNMENTSTableAdapter();
DataAccess.DispatchDatasetTableAdapters.ASSIGNMENTS_VWTableAdapter AssignmentsVWAdapter = new DataAccess.DispatchDatasetTableAdapters.ASSIGNMENTS_VWTableAdapter();
AssignmentsAdapter.Fill(dispatchDS.ASSIGNMENTS);
AssignmentsVWAdapter.Fill(dispatchDS.ASSIGNMENTS_VW);
// Bind gridgroupingcontrols to dispatch dataset
bindingSourceAssignVW.DataSource = dispatchDS;
bindingSourceAssignVW.DataMember = "ASSIGNMENTS_VW";
bindingSourceAssign.DataSource = dispatchDS;
bindingSourceAssign.DataMember = "ASSIGNMENTS";
Attachment:
Captures_eb000a2b.zip