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.

Changing cell text at runtime issue.

Thread ID:

Created:

Updated:

Platform:

Replies:

20992 Oct 29,2004 10:12 AM Nov 5,2004 09:03 AM Windows Forms 3
loading
Tags: GridControl
Chris Thompson
Asked On October 29, 2004 10:12 AM

I have an issue setting the text of a cell at runtime in a data bound grid. I use the following code to set the text of a cell when a use clicks a menu item. The very first time this is done the value in the cell does not change, although I can see it flicker. Any subsequent click of the menu item changes the text of the cell. What do I need to do to get this to work the first time it is run? grdDetail.Binder.BeginEdit() grdDetail(grdDetail.CurrentCell.RowIndex, cellIdx).Text = value grdDetail.Binder.EndEdit()

Administrator [Syncfusion]
Replied On October 29, 2004 10:47 AM

The only problem I can think of is if teh cell you are trying to change is an editing currentcell. In this case the change would be ignored probably. Here is a little sample that avoid this problem in 2.1.0.9. Does it work for you? Are you doing something differently? WindowsApplication13_4706.zip

Chris Thompson
Replied On November 5, 2004 06:55 AM

One other odd thing here. Maybe this will help find an answer... If I am on the first row of the grid, and even if I click on the first row of the grid, I see the text I am writing in the cell "flash". It appears, and then disappears. If I click on any other row in the grid, I can change the data of the cell for any row. I no longer see the data "flash".

Administrator [Syncfusion]
Replied On November 5, 2004 09:03 AM

What version of our dll''s are you using? I have seen the behavior you described in recent test builds here, but it does not happen in 2.1.0.9 for me using the same test samples.

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.

;