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

Changing Summary Cell Appearance

Thread ID:

Created:

Updated:

Platform:

Replies:

70088 Nov 26,2007 09:22 PM UTC Aug 21,2009 12:47 PM UTC Windows Forms 3
loading
Tags: Grouping
Abhishek Shivalingaiah
Asked On November 26, 2007 09:22 PM UTC

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

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


Vishal Shah
Replied On August 20, 2009 08:30 AM UTC

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

Lingaraj S [Syncfusion]
Replied On 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.

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

;