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 #26847 is a reply to message #26845] Wed, 02 June 2010 09:14 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3360
Registered: August 2008
Senior Veteran
unodgs wrote on Wed, 02 June 2010 08:33

@Koldo, you can just make all rows non editable for a while you need it using Editable method. I know it's not comfortable and pretty but should work. I'll try to add ReadOnly method that do this.

Hello uno

I have this now:

	if (!readOnly)
		gridPlantas.Accept();
	else
		gridPlantas.Reject();


I have tried this, but the results are the same:
	for (int row = 0; row < grid.GetRowCount(); ++row)
		for (int col = 0; col < grid.GetColumnCount(); ++col)
			grid.GetItem(row, col).Editable(!readOnly);
(GetItem is really private Smile)

I have not found an Editable() method for rows.


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 16:52:29 CEST 2024

Total time taken to generate the page: 0.01548 seconds