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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

The SaveCellInfo event

Thread ID:





77651 Nov 11,2008 01:24 PM UTC Nov 13,2008 12:37 PM UTC WinForms 3
Tags: GridControl
Markus Persson
Asked On November 11, 2008 01:24 PM UTC

When I change a value in a cell in my GC so do I check this in the SaveCellInfo-event and save it into a DataView.

When this happend so do I also want to change the BackColor in my GC to something else to indicate the user that the cell has a changed value.
But with this code:

CType(sender, GridControl)(e.RowIndex, e.ColIndex).BackColor = Color.BurlyWood

So do I end up in an infinite loop, since changing the BackColor seems to also raise the SaveCellInfo-event.
Is there a way to change the BackColor in SaveCellInfo without raising the event?

Markus Persson
Replied On November 12, 2008 10:31 AM UTC

I found the SaveCellFormattedText event which seems to be able to do what I want.

However, when I type in a value into my GridControl now I get things like "5 is not a valid value for Decimal." or "Foobar is not a valid value for String." when it tries to run the SaveCellFormattedText event. Why?

Markus Persson
Replied On November 12, 2008 03:42 PM UTC

I noticed that the sender in the SaveCellFormattedText event is GridModel and not GridControl. I solved my problem once I noticed that.

Rajadurai C [Syncfusion]
Replied On November 13, 2008 12:37 PM UTC

Hi Markus,

Thanks for your interest in Syncfusion products.

Glad to hear that your issue has been solved.

Please let us know if you have any further concerns.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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.