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 » Copy GridCtrl cell when read only
Re: Copy GridCtrl cell when read only [message #26851 is a reply to message #26849] Wed, 02 June 2010 09:48 Go to previous message
koldo is currently offline  koldo
Messages: 3360
Registered: August 2008
Senior Veteran
unodgs wrote on Wed, 02 June 2010 09:21

I thought about Editable for rows Smile so your code could be simplified to:
for (int row = 0; row < grid.GetRowCount(); ++row)
     grid.GetRow(row).Editable(!readOnly);

This version is also faster.

Hello uno

Thanks for your fast response.

Unfortunately, these solution does not let to copy a cell in read only mode.

Other drawback is that it lets to follow editing a cell in read only mode if it was being edited previously. However Reject() is better as it ends any previous unfinished editing.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl samples with all functions and methods
Next Topic: inconsistency causes crash
Goto Forum:
  


Current Time: Mon May 06 20:13:01 CEST 2024

Total time taken to generate the page: 0.02439 seconds