BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e) { GridTableCellStyleInfo style = e.TableControl.Model[e.Inner.RowIndex, e.Inner.ColIndex]; if(style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionCell) { Console.WriteLine(style.Text); GridCaptionRow capRow = style.TableCellIdentity.DisplayElement as GridCaptionRow; Console.WriteLine(capRow.ParentGroup.Category); } }
private void button1_Click(object sender, System.EventArgs e) { GridCaptionRow capRow = this.gridGroupingControl1.Table.CurrentElement as GridCaptionRow; if(capRow != null) { Console.WriteLine(capRow.ParentGroup.Category); } }
GridCaptionRow capRow = style.TableCellIdentity.DisplayElement as GridCaptionRow;
Console.WriteLine(capRow.ParentGroup.Category);
GridRecord rec = capRow.ParentGroup.FilteredRecords[0] as GridRecord;
Console.WriteLine(rec.GetValue("Col0"));