AD
Administrator
Syncfusion Team
February 21, 2006 05:57 AM UTC
Hi Chuck,
The row number can be displayed in the row header by handling the gridGroupingControl1_QueryCellStyleInfo event. Below is a code snippet.
this.gridGroupingControl1.TableDescriptor.Appearance.RowHeaderCell.CellType = "Header";
this.gridGroupingControl1.TableOptions.RowHeaderWidth = 25;
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.ColIndex == 0 && e.TableCellIdentity.RowIndex > 3)
e.Style.Text = (e.TableCellIdentity.RowIndex - 3).ToString();
}
Best Regards,
Madhan.