Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 3033
Registered: August 2008
Ultimate Member
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: 3033
Registered: August 2008
Ultimate Member
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: Wed Nov 20 13:57:24 CET 2019

Total time taken to generate the page: 0.01184 seconds