New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.private void gridGroupingControl1_TableControlCurrentCellMoved(object sender, GridTableControlCurrentCellMovedEventArgs e) { GridCurrentCell cc = e.TableControl.CurrentCell; GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex]; if(style.TableCellIdentity.Table.Equals(this.gridGroupingControl1.Table) && ( style.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell || style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell)) { Console.WriteLine("TopLevel"); } else { Console.WriteLine("Nested"); } }
public int GetRowIndex(Element el) { return this.gridGroupingControl1.Engine.Table.NestedDisplayElements.IndexOf(el); }Then replace the offending line with this line:
int offset = GetRowIndex((GridRecord)gnt.ChildTable.GetFirstRecord())- GetRowIndex(gnt.ChildTable);