Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
Enter Edit Mode Removes the cells current value
posted

Hi

I have a grid where i wish to use the '-' key to toggel between two cells.

When i press the '-' key, i tell the cell which i am moving to, to have the same value as the previous cell. So cell 1 has the value 500, I press the '-' key and I want cell 2 to have the value of 500 also.

After i set the cells value, i then want to enter edit mode in the cell. I can do this but as soon as i enter edit mode the cells appearance shows the cell as blank.

Is there anyway that i can enter the cells edit mode without it clearing the display contents? (Interestingly enough i have a row in the grid which looks at the totals and it knows that the cell has the value 500 but you just cant see it, when you exit edit mode for that cells the value appears)

 

 

 

 

grid.ActiveCell = debitCell;

 

 

debitCell.Value = creditValue;

 

grid.PerformAction(

UltraGridAction.EnterEditMode);

grid.ActiveCell.SelStart = 0;

Parents Reply Children