Can I get a cell style from the renderer onActivating method??

obviously I have the row and col of the current cell (arguments to the function) but I want to get the style relating to that cell, is this possible?? I can''t find access to the gridcontrol so can''t just use Grid[row,col] like normal.

Help!

Colin

1 Reply

AD Administrator Syncfusion Team September 22, 2006 04:31 AM UTC

Hi Colin,

Yes. Please use this code snippet to get the cellstyle from renderer.

protected override bool OnActivating(int rowIndex, int colIndex)
{
GridStyleInfo style = this.Grid.Model[rowIndex,colIndex];
if( style != null)
Console.WriteLine(style.Text );
return base.OnActivating (rowIndex, colIndex);
}

Thanks,
Haneef

Loader.
Up arrow icon