Hi,
I am using GroupingGrid control in my windows application. I am using TableControlCurrentCellControlDoubleClick event to capture double click in any row of the grid. Now How can i get the data in the row on which the user clicks. Suppose i want to popup a dialog with the data in that row how can i get that.
Secondly, how can i determine if the clicked row is a parent or a child. I want to show the popup only if user clicks on the child row. and not when user clicked on any parent row.
I am using following code to populate the datagrid.
parentTable = GetParentTable();
childTable = GetChildTable();
GridRelationDescriptor parentToChildRelationDescriptor = new GridRelationDescriptor();
parentToChildRelationDescriptor.ChildTableName = "MyChildTable"; // same as SourceListSetEntry.Name for childTable (see below)
parentToChildRelationDescriptor.RelationKind = RelationKind.RelatedMasterDetails;
parentToChildRelationDescriptor.RelationKeys.Add("Basket Name", "Basket Name");
// Add relation to ParentTable
gridGroupingControl1.TableDescriptor.Relations.Add(parentToChildRelationDescriptor);
this.gridGroupingControl1.Engine.SourceListSet.Add("MyParentTable", parentTable);
this.gridGroupingControl1.Engine.SourceListSet.Add("MyChildTable", childTable);
this.gridGroupingControl1.DataSource = parentTable;
Thanks