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 » ArrayCtrl : how to forbid editing of one row ?
Re: ArrayCtrl : how to forbid editing of one row ? [message #30383 is a reply to message #30352] Mon, 27 December 2010 12:21 Go to previous message
Didier is currently offline  Didier
Messages: 736
Registered: November 2008
Location: France
Contributor
Hi Mirek and undogs,

Quote:

Another option is to use GridCtrl where you can enable/disable editing for particular row/column or cell.


Actually I'm using SqlArray so changing to GridCtrl is not plug&play so I'll stick with SqlArray for now.


Quote:

If the ArrayCtrl is not supposed to hold MANY rows, I would probably used "the other" method of editing it, with embedded widgets for each row, and simply not assigned any for rows I do not want to edit.

void ArrayCtrl::SetCtrl(int i, int col, Ctrl& ctrl, bool value = true);


I will try this method, I didn't see it. I thought edit ctrls were only set to rows.
NB: I don't have many rows, and never will (max 100)

Thanks !

[Updated on: Mon, 27 December 2010 12:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Keeping EditString content in gridctrl
Next Topic: Feature request: DropGrid shifts to edit text mode if dynamic search results in 0 matches
Goto Forum:
  


Current Time: Mon Aug 25 23:00:04 CEST 2025

Total time taken to generate the page: 0.00524 seconds