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.
When a check box in a mult table nested GridGroupingControl changes state I want to take a action. I am trapping the GridTableControlCellClickEvent and need to know which record the event occured on. How can I find that out?
ADAdministrator Syncfusion Team March 16, 2007 08:21 PM UTC
Hi Bill,
Is this the best way to handle this? >>>>> Yes. You can handle the TableControlCurrentCellChanged event of the grid and get the record and currentcell value using the below code snippet. Please let me know if this helps.
void gridGroupingControl1_TableControlCurrentCellChanged(object sender, GridTableControlEventArgs e) { GridCurrentCell cc = e.TableControl.CurrentCell; GridTableCellStyleInfo style = cc.Renderer.CurrentStyle as GridTableCellStyleInfo; if (style.CellType == "CheckBox") //GridCellTypeName.CheckBox { Element el = style.TableCellIdentity.DisplayElement;
if (el.Kind == DisplayElementKind.Record) { GridRecordRow row = el as GridRecordRow; if (row != null && row.ParentRecord != null) { Record rec = row.ParentRecord; if ((bool)cc.Renderer.ControlValue) { //Perform True Section.... } else { //Perform False Section.... } } } } }
Best regards, Haneef
BLBill LanglaisMarch 17, 2007 03:44 AM UTC
I am using C++ and here is the code I wrote based on your code: