[Gtk-sharp-list] DataGrid control, data binding, ObjectViews, Swf, Gtk

Victor Rafael Rivarola Soerensen (FANATICO y LOCO por Cristo) vrrivaro at gmail.com
Tue Dec 13 20:53:28 EST 2005


Hi,

Sorry Gennadiy, I meant the past few mails to go to the list.
Apparently, I must have hitted "Reply" instead of "Reply to All" and
didn't notice. Sorry for taking more of your time, but I am just
informing the list of whatever they missed.

I will keep on working on the example now. I also have limited time,
but my deadline is not so soon. Still, I really need this to allow me
to start on a project which is only missing this piece, as the code as
it stands now does not satisfy my needs.

God bless you all,

Víctor Rafael Rivarola

2005/12/13, Gennadiy Donchyts <gennadiy.donchyts at gmail.com>:
> Hi Victor,
>
> I will try to write a bit more in details a few days later, after my
> deadlines will pass, now very busy, but in general I support the idea to
> join our efforts to develop it.
>
> To have svn is a *must* for sure. I would also suggest creating a place to
> put and discuss ideas abut such controls on something like Confluence
> (http://nhibernate.sourceforge.net  a good example).
>
> The license as I know was Novell for some versions (DataGrid, TreeView in
> current version of MD), in some other sources I saw MIT (PropertyGrid).
> Could we use LGPL for example for all code, what are the pros/cons of is
> over other (BSD, etc.)? Also are they compatible (MIT, Novell, LGPL, etc.?)
>
> About code I think we should 1) have *demo/examples* code to demonstrate all
> functionality 2) write *tests* first for a new functionalities before coding
>
> Best regards,
> -Gena
>
>
>
> On 12/14/05, Victor Rafael Rivarola Soerensen (FANATICO y LOCO por Cristo)
> <vrrivaro at gmail.com> wrote:
> > Thanks. That looks like a pretty funtional DataGrid with almost all
> > the features that I need. I would like to offer my help improving it.
> >
> > First, in my opinion, we should really move it to Novell Forge and put
> > it up on SVN. I could put it up, but I don't have the authorization
> > for it. Already there are three (or two?) people working on it, I
> > really think we could use something better than email to pass the
> > source around.
> >
> > What is the license, by the way? It really sounds as if this is in the
> > public domain, in which case I could put it up.
> >
> > I am currently modifying Daniel's TestDataGrid.cs to make use of the
> > features of your new DataGrid.cs . We could make it our first step
> > towards a tutorial on how to use it so I find it important to keep the
> > sample up to date.
> >
> > Thanks and God bless you all,
> >
> > Víctor Rafael Rivarola
> >
> > 2005/12/13, Gennadiy Donchyts <don at env.com.ua>:
> > > I've forgot to mention a property grid from Michael, Eric, I liked the
> code
> > > :).
> > > After commenting [PropertyEditorType (typeof (Double))] attribute in
> > > NumberEditor.cs there and it could edit anything
> > >
> > > using DefaultEditor.cs.
> > > What else ... ?
> > >
> > >
> > > On 12/13/05, Gennadiy Donchyts < gennadiy.donchyts at gmail.com > wrote:
> > > >
> > > > Hi all,
> > > > in fact I've already started to change it a bit but those are only
> hacks
> > > to make it work since I need to show some results very soon.
> > > > For time beeing boolean, datetime or any other string-convertable
> formats
> > > works (but not very stable :)).
> > > > What I need to complete in several days are:
> > > >
> > > > - add/delete a rows using some key shortcuts.
> > > > - auto refresh of data-binded objects on changes (events).
> > > >
> > > > With number formats it must be easy by adding additional property to
> > > DataGridColumn however automatic Convert implementation works fine by
> > > default.
> > > > Why novellforge and not on sourceforge? :)
> >
> > Because of philosofical and technical reasons.
> >
> > Philosofical reasons: We could us Novell Forge. We could use GNU
> > Savannah ( http://savannah.gnu.org/, I just now found out about it).
> > But I really do not think we ought to use SourceForge
> > (http://www.advogato.org/article/357.html).
> >
> > Technical reasons: SVN
> >
> > > >
> > > > Any suggestions for the generic library namespace? (Mono.Controls /
> > > Gtk.Controls / ...). I would also include in that library something like
> > > tree from MD, NPlot Gtk wrapper, etc. ... there could be a lot of nice
> > > controls :).
> >
> > Gtk.Controls sounds fine to me. I don't think Mono.Controls is fine
> > because people use other controls with Mono (like Windows.Forms and
> > Cocoa#), and this will only work with Gtk#.
> >
> > > >
> > > > --Gena
> > > >
> > > > PS: sorry, I will put files in attachments ...
> > > >
> > > >
> > > >
> > > > On 12/13/05, Victor Rafael Rivarola Soerensen (FANATICO y LOCO por
> Cristo)
> > > < vrrivaro at gmail.com> wrote:
> > > > > Daniel, Geennadiy:
> > > > >
> > > > > How about if we start a new project on Novell Forge and place that
> > > > > control under SVN?
> > > > >
> > > > > That way anybody could help you get a nice control quicker.
> > > > >
> > > > > I am myself interested in the existence of such a control, with some
> > > > > posible additions to what you have already talked about:
> > > > >
> > > > > 1. Booleans (check boxes)
> > > > > 2. Foreign keys (drop-down menus without the option for new strings)
> > > > > 3. Different number formats (#.###,## , #,###,###.## , # , ##% ,
> etc)
> > > > >
> > > > > I am only interested in a Gtk# fat client control, not in a ASP.NET
> > > > > one, but that is a personal choice.
> > > > >
> > > > > God bless you all,
> > > > >
> > > > > Víctor Rafael Rivarola
> > > > >
> > > > > 2005/11/19, Gennadiy Donchyts < don at env.com.ua>:
> > > > > > On 11/19/05, Daniel Morgan < monodanmorg at yahoo.com> wrote:
> > > > > > > I really do wish someone would create a real-world
> enterprise-class
> > > DataGrid
> > > > > > > for gtk# with Data Binding and many other fancy features.
> > > > > > >
> > > > > > > And take this DataGrid and make it part of Gtk#.   Maybe have
> > > another gtk#
> > > > > > > assembly for these extra widgets.
> > > > > >
> > > > > > Yes, I was thinking also that it would be nice to have some
> separate
> > > independent
> > > > > > library from MD, sqlsharpgtk, etc. that will include all higher
> level
> > > widgets
> > > > > > (something like graphical user interface building blocks
> > > > > > library,should think about
> > > > > > right name later), probably later someone will include it in Gtk#
> if
> > > it will be
> > > > > > interesting or to have it as an addition to Gtk#.
> > > > > >
> > > > > > > Anyways, I have something I have worked on for awhile, maybe
> others
> > > can
> > > > > > > improve upon it and give back.  If someone is interested, we
> could
> > > put it
> > > > > > > into subversion somewhere with other gtk# widgets.  Chris and I
> have
> > > > > > > discussed this in the past, but there is only so much time.
> > > > > >
> > > > > > Thanks for the sources, so I will use them to start and then will
> > > > > > contribute back when something will improve. I plan to spend a bit
> of
> > > > > > time working
> > > > > > on that DataGrid improvements, especially data binding. I'm trying
> to
> > > > > > data bind it to
> > > > > > a collection of objects right now but it also should work with the
> > > ADO.NET
> > > > > > DataTable.
> > > > > >
> > > > > > Please put some other widgets or send it by mail.
> > > > > >
> > > > > > > Here are the source files I included:
> > > > > > > DataGrid.cs - creates a DataGrid for Gtk# with data binding
> support.
> > > > > > > TestDataGrid.cs - tests the gtk# data grid
> > > > > > >
> > > > > > > Basically, you can take a pre-loaded DataTable, and then "data
> bind"
> > > it to
> > > > > > > the DataGrid.  It may not be true data binding like SWF or
> webforms,
> > > but its
> > > > > > > an attempt.
> > > > > > >
> > > > > > > A change to the data in the DataGrid w! ill update the data in
> the
> > > > > > > DataTable.
> > > > > > > If you add a row or delete a row in the DataGrid, it will be
> > > reflected in
> > > > > > > the DataTable.  If you modify a cell in the DataGrid, the row
> and
> > > column in
> > > > > > > the DataTable will be updated.
> > > > > >
> > > > > > With the data table it should not be much problems but with object
> > > > > > collections it could be a bit different, however if all
> information
> > > > > > could be filled
> > > > > > from the grid - it should be possible to implement it using
> > > > > > ObjectViews. I will try
> > > > > > to look at it later.
> > > > > >
> > > > > > > In the test, there are four menu items:
> > > > > > > 1. Add Row - adds a row
> > > > > > > 2. Dump Table - dumps to the console what's in the DataTable
> > > > > > > 3. Editable - sets the DataGrid editable or not
> > > > > > > 4. Delete Selected Row - deletes the highlighted row
> > > > > > >
> > > > > > > One thing I would love to see added is an Input Mask and Format
> > > properties
> > > > > > > added to each column.   Let's say you would like to format dates
> as
> > > a short
> > > > > > > date, you would put "Short Date" in the format property for any
> > > locale.  Or
> > > > > > > you could set it to "MM/DD/YYYY" for US locale..   A numeric
> column
> > > you
> > > > > > > could have it format as "###,###,###.##" or just simply say
> > > "Currency" for
> > > > > > > any locale.
> > > > > > > An input mask could limit certain characters, such as, alpha
> only,
> > > nu! meric
> > > > > > > only, alphanumeric.  Canadian postal code i believe is alpha,
> > > numeric,
> > > > > > > alpha, space, numeric, alpha, numeric.  So your input mask would
> be:
> > > "ANA
> > > > > > > NAN".
> > > > > >
> > > > > > It could be done with something like standard formatters, have not
> a
> > > lot of
> > > > > > experience with it but should be no problems to add it for columns
> > > metainfo
> > > > > > classes and to render in a proper way in grid.
> > > > > >
> > > > > > --Gena
> > > > > >
> > > > > >
> > > > > > > Anyways, please let me know if this is what you wanted.
> > > > > > >
> > > > > > >
> > > > > > > Christian Hergert < christian.hergert at gmail.com> wrote:
> > > > > > > The original version of the datagrid i put in monodevelop was
> taken
> > > > > > > from sqlsharpgtk. Daniel has since done some additions to the
> > > > > > > monodevelop version to support basic editing and deletion. It
> also
> > > had
> > > > > > > support for somewhat of a managed tree model. To be honest, im
> not
> > > > > > > sure if ive merged that support yet. Both versions are a hack
> > > > > > > regardless.
> > > > > > >
> > > > > > > Your example below will not work. First, you cant add an object
> to a
> > > > > > > gtk container that doesnt inherit from Gtk.Widget. Secondly,
> even if
> > > > > > > it did work, you would have just doubled your requirements on
> every
> > > > > > > platform to both gtk and swf.
> > > > > > >
> > > > > > > -- Christian
> > > > > > >
> > > > > > _______________________________________________
> > > > > > Gtk-sharp-list maillist  -   Gtk-sharp-list at lists.ximian.com
> > > > > >
> > >
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > FANÁTICO
> > > > > "Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi
> boca."
> > > > > Apocalipsis 3:16
> > > > >
> > > > > LOCO
> > > > > "Porque la Palabra de la Cruz es locura para los que se pierden;
> pero a
> > > > > los que se salvan, esto es, a nosotros, es poder de Dios."
> > > > > 1 Corintios 1:18
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > FANÁTICO
> > "Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi boca."
> > Apocalipsis 3:16
> >
> > LOCO
> > "Porque la Palabra de la Cruz es locura para los que se pierden; pero a
> > los que se salvan, esto es, a nosotros, es poder de Dios."
> > 1 Corintios 1:18
> >
>
>


--
FANÁTICO
"Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi boca."
Apocalipsis 3:16

LOCO
"Porque la Palabra de la Cruz es locura para los que se pierden; pero a
los que se salvan, esto es, a nosotros, es poder de Dios."
1 Corintios 1:18


More information about the Gtk-sharp-list mailing list