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

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: 3458
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: Sun Apr 26 23:30:15 GMT+2 2026

Total time taken to generate the page: 0.00448 seconds