The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
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);
ADAdministrator Syncfusion Team August 8, 2007 07:06 AM UTC
Here is one way you can get at the record that was doubles clicked. void gridGroupingControl1_TableControlCurrentCellControlDoubleClick(object sender, GridTableControlControlEventArgs e) { GridRecord rec = e.TableControl.Table.CurrentRecord as GridRecord; if (rec != null && rec.ParentChildTable.Name == "ChildTable") { if (rec != null) { Console.WriteLine(rec.GetValue("ScienceScore")); } } }