[Gambas-user] Gridview

Gareth Bult gareth at ...1689...
Wed Aug 22 17:53:50 CEST 2007


Urm,

Yes and no .. popular misconception about the way Grid's work, certainly in the context of GridEditor.
The table and cells are not static, they are rendered on demand by the event handler.

Hence, you can't change a cell's properties (statically) ..

The way to do it is to intercept the "Data" event.

Essentially "DBGridEditor" subclasses "GridEditor".
When GridEditor needs to redraw a cell, it raises a "Data" event.
(see DBGridEditor:: GridView_Data)

I'm not supporting re-raising Data at the moment .. if you need to do this it just means that there are needed features that I've not added to GridEditor yet.

I would recommend you edit GridView_Data (it's relatively obvious) to suit ...

Incidentally, GridEditor has moved on a number of revisions, however the API has changed a little so I've not released anything .. I'd really like to get it properly integrated into the IDE first .. fyi; my live app is running about 15 concurrent tables, with one tree (master->slave) nesting to 4 levels with daisychaining on_change events .. so it seems to be doing the trick :)

hth
Gareth.

--
Managing Director, Encryptec Limited
Tel: 0845 25 77033, Mob: 07891 389657
Email: gareth at ...1689... 
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.

----- Original Message -----
From: "Steven Lobbezoo" <steven at ...1652...>
To: gambas-user at lists.sourceforge.net
Sent: Wednesday, August 22, 2007 4:14:07 PM (GMT) Europe/London
Subject: [Gambas-user] Gridview

Hi,

Sorry to bother you inmidst all this exitement on the new web-site
with a simple question on gambas, ;-) but :

If I do :
  GridView2.Current.ForeColor = Color.DarkRed

or any other property of the current cell in the color range (BackColor, ....)
the contents of the cell is eraised.

Is this normal behaveour ?

Thanks,
Steven

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list