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 #30351 is a reply to message #30303] Sat, 25 December 2010 20:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Didier wrote on Wed, 22 December 2010 18:10

Hi,

I want to prevent editing certain rows of ArrayCtrl depending on the contained values.

Is there a way to do this
NB: StartEdit() method is not virtual so I can't derive the class Sad




This is quite specific request Smile

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);

If this does not solve your problem, I am not strictly opposed to adding required option to ArrayCtrl Smile

Mirek
 
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 21:09:11 CEST 2025

Total time taken to generate the page: 0.00697 seconds