View previous topic :: View next topic |
Author |
Message |
Robert Harris
Joined: 03 May 2007 Posts: 3
|
Posted: Thu May 03, 2007 8:03 pm Post subject: Compatability with Janus Systems GridEX grid control |
|
|
Hello. I am evaluating Virtual Data Objects. The binding and updating seems to work great with all the native .net controls I've tried with. However when I use VDO as the data source for a Janus GridEX grid control, edits made in the grid are not saved. I can edit a cell, but when I move off the row the change is immediately discarded and the original value reappears. The GridEx control does not exhibit this behavior when bound to a regular ADO.NET data source.
Is this a known issue?
Thanks!
-Robert |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu May 03, 2007 10:28 pm Post subject: |
|
|
This is not a known issue with VDO. It sounds like it may be an issue with the way the JanusGridEx is implemented. _________________ Infralution Support |
|
Back to top |
|
|
Robert Harris
Joined: 03 May 2007 Posts: 3
|
Posted: Fri May 04, 2007 3:10 pm Post subject: |
|
|
Can you recommend a 3rd party grid control that has been tested with VDO?
Thanks - Robert |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri May 04, 2007 11:12 pm Post subject: |
|
|
Well you could certainly take a look at our Virtual Tree component. It is more then a grid - but can be used as just a grid and provides all the normal grid functionality plus more. _________________ Infralution Support |
|
Back to top |
|
|
Robert Harris
Joined: 03 May 2007 Posts: 3
|
Posted: Tue May 08, 2007 7:16 pm Post subject: Virtual Tree as a simple grid control |
|
|
Thanks for the suggestion! I'm evaluating Virtual Tree 3.0 now, but I'm having trouble with the initial setup. I have a Virtual Recordset on my form as a datasource. I set the Tree's dataSource to the virtual recordset at design time, and it appears to auto generate columns. However when I display the form data only appears for the first column, all the other columns are blank. I've looked through the help and the sample projects that display the tree as a grid, but I'm having trouble finding what settings to use. How do I use Virtual Tree like a standard grid?
Thanks. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue May 08, 2007 11:13 pm Post subject: |
|
|
Try with one of the Virtual Data sample projects first maybe. Open the Simple Data Binding sample project (C# or VB). Open the main form in the designer. You should see the data from the Northwind database displayed. Now add a Virtual Tree control to the form (on top of the grid for now). Set the DataSource to the "_customersRecord". Virtual Tree should create columns for each of the fields and data bindings that map the fields in the database to the columns. You can edit these be right clicking on the control and selecting "Edit Virtual Tree".
Unlike a simple list view, Virtual Tree can support displaying items of different types. For each type of item displayed you need to define a "Row Binding" that maps the fields of the item to the columns of the tree. When you set the DataSource at design time Virtual Tree will generate these automatically. You can then edit them manually.
Note that by default the root item is the DataSource. For a grid type display you typically don't want to display this - so you would set ShowRootRow to false.
If you are using strongly typed recordsets then you typically need to setup the bindings manually. Check out the Virtual Tree Database Browser sample project. This uses Virtual Data Objects to display data from an access database. _________________ Infralution Support |
|
Back to top |
|
|
|