U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Set GridCtrl read only when editing
Set GridCtrl read only when editing [message #26297] Thu, 22 April 2010 14:05 Go to next message
koldo is currently offline  koldo
Messages: 3458
Registered: August 2008
Senior Veteran
Hello all

I wanted to set a GridCtrl as read only when cursor is editing in a cell.

Now in that state, doing

grid.Inserting(w).Appending(w).Removing(w).Editing(w).Duplicating(w);


does not affect the grid until the cell loose the focus.

So if I do not click outside the cell, I can follow editing although the grid is read only.


Best regards
Iñaki
Re: Set GridCtrl read only when editing [message #26298 is a reply to message #26297] Thu, 22 April 2010 17:35 Go to previous message
koldo is currently offline  koldo
Messages: 3458
Registered: August 2008
Senior Veteran
Hello all

I have found CancelEdit().

It serves well although rejects the changes in last edited cell with cursor selected inside.


Best regards
Iñaki
Previous Topic: Proposal: add WhenScroll to ArrayCtrl
Next Topic: App crashes when remove rows in WhenChangeRow-callback
Goto Forum:
  


Current Time: Sat May 02 09:26:47 GMT+2 2026

Total time taken to generate the page: 0.00653 seconds