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. Image for the cookie policy date
close icon

apply format to cells after editing in Syncfusion grid control

apply format to cells after editing in Syncfusion grid control

1 Reply

JJ Jisha Joy Syncfusion Team July 6, 2009 12:20 PM UTC

Hi,

If you want to apply styles to the cell while editing this can be achieved by handling QueryCellInfo event. You could check whether CurrentCell is editing and set the styles as desired.

void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
if (this.gridControl1.CurrentCell.IsEditing)
e.Style.TextColor = Color.Green;
}

Please let me know if this does not serve your needs.

Regards,
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon