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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

49593 Sep 21,2006 09:56 AM Sep 22,2006 12:31 AM Windows Forms 1
loading
Tags: GridControl
Colin Bolton
Asked On September 21, 2006 09:56 AM

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 12:31 AM

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.

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.

;