private void CreateRowCaptions()
{
// ExStart:CustomizeRowHeader
// Accessing the worksheet that is currently active
GridWorksheet workSheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex];
// Create custom row header caption.
workSheet.SetRowCaption(1, "Row1");
workSheet.SetRowCaption(2, "Row2");
// ExEnd:CustomizeRowHeader
}
}