BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e) { if(e.Style.CellType == "CheckBox") { GridRecordRow rec = this.gridGroupingControl1.Table.DisplayElements[e.TableCellIdentity.RowIndex] as GridRecordRow; if(rec != null) { Group grp = rec.ParentGroup; if(grp != null && grp.GetChildCount() == 2) { e.Style.BackColor = Color.Blue; } } } }
Group grp = gcr.ParentGroup; //gcr is GridCaptionRow if(grp.IsExpanded) { Console.WriteLine("++++++++"); DetailsSection ds = grp.Details; if(ds is GridRecordsDetails) { GridRecordsDetails grd = ds as GridRecordsDetails; foreach(Record r2 in grd.Records) { Console.WriteLine("* " + r2.ToString()); } } else if(ds is GridGroupsDetails) { GridGroupsDetails ggd = ds as GridGroupsDetails; foreach(Group g in ggd.Groups) { Console.WriteLine("+ " + g.ToString()); } } Console.WriteLine("-------"); }
Group grp = gcr.ParentGroup; //gcr is GridCaptionRow string spc = new string(''*'', 20); //for indents while(grp != null) { Console.WriteLine(spc + grp.ToString()); spc = spc.Substring(0, spc.Length - 2); grp = grp.ParentGroup; }