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 » How set read-only state to a editable column?
Re: How set read-only state to a editable column? [message #5605 is a reply to message #5604] Thu, 05 October 2006 15:20 Go to previous messageGo to next message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
unodgs wrote on Thu, 05 October 2006 15:13

nicomesas wrote on Thu, 05 October 2006 06:13

I'm testing the code grid.GetRow(0).Editable(false) and I can edit the row 0!! Confused

I have the last version of GridCtrl, downloaded from http://dgs.pac.pl/dgs.php?page=downloads

In summary... at this moment ...
grid.Editable(true/false) ; // I don't test it
grid.GetRow(xxx).Editable(true/false) ; // I test it but does not work, the row remains editable
grid.GetColumn(xxx).Editable(true/false) ; // I tested but you sais it is not implemented o functional?



Strange, at least it works in my latest dev version...




If works in your dev version, I can wait for it. For the moment I solved the problem using grid.SetFixedRows(3), then the user can not modify the firs two rows. Laughing

when I finish this project I want it to publish it under GNU license in sourceforge. I believe that it will be well. Smile

Nico
Re: How set read-only state to a editable column? [message #5606 is a reply to message #5603] Thu, 05 October 2006 15:22 Go to previous message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
unodgs wrote on Thu, 05 October 2006 15:10

Change
myGrid.AddColumn(cols[i]).Width(150)

to
myGrid.AddColumn(cols[i], 150)


Width(150) is fixed in 0.96... (Frankly I never used Width Wink )

Thank you for testing! Keep finding bugs!



I'm waiting for your new version....

Nico
Previous Topic: first row strange behaviour
Next Topic: functions of HeaderCtrl [REQUEST?]
Goto Forum:
  


Current Time: Sun Apr 28 22:42:49 CEST 2024

Total time taken to generate the page: 2.96909 seconds