We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

49593 Sep 21,2006 01:56 PM UTC Sep 22,2006 04:31 AM UTC Windows Forms 1
loading
Tags: GridControl
Colin Bolton
Asked On September 21, 2006 01:56 PM UTC

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

Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;