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

Changing Summary Cell Appearance

Syncfusion 5.1
VS 2005

I'm trying to update the cell appearance of the summary section when the underlying record cell blinks, but having no luck with the attached code snippet in the
TableControlPrepareViewStyleInfo event.

Appreciate your response. Thanks






code_snippet.zip

3 Replies

HA haneefm Syncfusion Team November 27, 2007 11:32 PM UTC

Hi Shek,

Please try these code and let me know if this helps.

GridTableCellIdentity id = null;
void gc_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e)
{
GridTableCellStyleInfo style = (GridTableCellStyleInfo)e.Inner.Style;
BlinkState bs = this.Grid.GetBlinkState(style.TableCellIdentity);

if (bs != BlinkState.None)
{
if (bs == BlinkState.Increased || bs == BlinkState.Reduced)
{
// Blink works
style.BackColor = Color.Red;
style.TextColor = Color.White;
style.Font.Bold = true;
id = style.TableCellIndentity;
}
}
// The next 2 lines of code have no effect
// GridSummarySection summarySection = (GridSummarySection)style.TableCellIdentity.DisplayElement.ParentGroup.Summary;
// summarySection.Appearance.AnyCell.BackColor = Color.Red;
if (el.Kind == DisplayElementKind.Summary)
{

if ( e.TableControl.GroupingControl.GetBlinkState(id) != BlinkState.None)
e.Inner.Style.BackColor = Color.Red;
}
}

Best regards,
Haneef



VS Vishal Shah August 20, 2009 08:30 AM UTC

I want to apply blinking effect for new record . Can u please provid me code for same


LS Lingaraj S Syncfusion Team August 21, 2009 12:47 PM UTC

Hi Kumar,

Thank you for your interest in Syncfusion products.

Please refer the sample from below link, it demonstrates the blinking in AddedRecord.
http://files.syncfusion.com/support/samples/Grid.Windows/7.3.0.20/Forums/GGCBlink.zip

Please let me know if you have any queries.

Regards,
Lingaraj S.

Loader.
Live Chat Icon For mobile
Up arrow icon