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.

GridConditionalFormatDescriptor is not being apply immediately after change in checkbox cell

Thread ID:

Created:

Updated:

Platform:

Replies:

57492 Mar 5,2007 06:22 PM Mar 6,2007 09:53 AM Windows Forms 2
loading
Tags: Grouping
James Blibo
Asked On March 5, 2007 06:22 PM



I have the fllw conditional format defined...

GridConditionalFormatDescriptor descriptor = new GridConditionalFormatDescriptor();
descriptor.Appearance.AnyRecordFieldCell.BackColor = Color.Lavender;
descriptor.Expression = "[Length5] LIKE 'true' OR [Length10] LIKE 'true' OR [Length15] LIKE 'true'";
this.gridGroupingControl1.TableDescriptor.ConditionalFormats.Add(descriptor);

[Length5], ect, are checkbox boolean field returned from the database.

I noticed that my conditional format is not apply automatically when I check a checkbox. When I check the checkbox, ONLY the cell the contain the checkbox is colored; the entire row is not color until I move from click in another row.

The intended behavior that I want is to color the entire row as soon as any checkbox in the row is checked.

I have the following to immediately commit the data, but that did not help.

private void gridGroupingControl1_TableControlCheckBoxClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
cc.EndEdit();
}

Administrator [Syncfusion]
Replied On March 5, 2007 07:41 PM

Hi James,

You can try set RefreshCurrentCellBehavior property to GridRefreshCurrentCellBehavior.RefreshRow to refresh the whole row in a grid.

this.gridGroupingControl1.TableModel.Options.RefreshCurrentCellBehavior = GridRefreshCurrentCellBehavior.RefreshRow;

Best regards,
Haneef

James Blibo
Replied On March 6, 2007 09:53 AM

Sorry, that didn't work.

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.

;