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

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl::SetValues behaviour when seting empty Vector
GridCtrl::SetValues behaviour when seting empty Vector [message #36162] Tue, 08 May 2012 09:31
koldo is currently offline  koldo
Messages: 3460
Registered: August 2008
Senior Veteran
Hello Daniel

Now the function void GridCtrl::SetValues(const Vector< Vector<Value> >& vector) does nothing when vector is empty.

Perhaps it would be better that in that case SetValues() would Clear() the GridCtrl.

It would affect XMLize and like functions so loading an empty file would clear the GridCtrl. Now when loading an empty XML String the Grid remains unchanged. That does not seem to be the better behavior.


Best regards
IƱaki
Previous Topic: ArrayCtrl: How to use WhenDropCell...
Next Topic: Bugs with GridCtrl in Ubuntu 12.04
Goto Forum:
  


Current Time: Thu Jun 04 08:53:21 GMT+2 2026

Total time taken to generate the page: 0.00472 seconds