[Gtk-sharp-list] Ways of supporting complex data binding in TreeView

Todd Berman tberman at off.net
Fri May 27 21:40:36 EDT 2005


On Fri, 2005-05-27 at 15:58 -0700, Chas wrote:
> Hello,
> following a little chat on #monodev, I'm reposting
> this proposal.
> 
> The biggest question as far as I can tell is - which
> of the described options is better, the 'synced'
> liststore or the 'referencing' liststore? Maybe we
> need to support both? Or do someone have another idea?
> 
> Cheers,
> Chas
> 
> 


Why not just write a TreeModel implementation that allows all this. That
way your TreeModel object is used, and you dont have this option 1
option 2 stuff, both of which are sub-optimal.

Of course, the trick is properly implementing TreeModel (which is not
possible from pure managed code at this point)

As an aside, I know people think that DataBinding is super important,
but if you look at the features missing in gtk#, the big ones (seem to
be) 1) Can't implement GInterfaces 2) Can't override virtual methods w/o
lots of glue and hacks 3) the subclassing situation w/ CellRenderers is
semi-broken, most of this relates to #2.

Those 3 seem like truely important solvable issues, data binding doesn't
seem hard at all, especially if you can implement GInterfaces in C#.

--Todd



More information about the Gtk-sharp-list mailing list