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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Updating Cells on Entering Edit

Thread ID:





24142 Jan 28,2005 06:55 PM UTC Jan 28,2005 09:26 PM UTC WinForms 1
Tags: GridControl
Michael Lenaghan
Asked On January 28, 2005 06:55 PM UTC

I have a virtual grid where the values in the cells can be modified by several people on the network. When a user edits a cell, I want to make sure they''re aware of its most recent value. I''ve tried things like CurrentCell.Refresh in CurrentCellStartEditing, but it seems that the refresh doesn''t make it into the renderer. I''ve tried setting the Renderer.ControlText in that event, but I''ve discovered that I get errors from time to time. (I''ve enclosed a screenshot of the error stack.) What''s the proper way of updating the cell that''s going into edit mode? Also: for something like F2 it should refresh and edit, but if the user starts typing I don''t want to lose their keystrokes. CurrentCellStartEditing_211.zip

Administrator [Syncfusion]
Replied On January 28, 2005 09:26 PM UTC

Try setting grid.CurrentCell.Renderer.Control.Text to see if that will do what you need. (Note this is Control.Text and not ControlText) If you want to set the initially displayed text, you might also try using the CurrentCellInitializeControlText event. There you can set e.ControlText.


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.

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

Live Chat Icon For mobile
Live Chat Icon