Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Setting dataSource not working

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Setting dataSource not working
Link Posted: 05-Aug-2005 08:51
Greetings,
I am using FlyGrid 1.0.9.25458. My data-sources are custom collections that implement IList and IBindingList. They work find in .NET's DataGrid.
I add the columns at design-time and make sure that each column's field name mapps to a property in my collection's data-source.
1- I set the grid's Rows.DataSource property at design-time in the properties window, it does not get set in the form's code-behind (no code that actually sets the property)
2- When I set the Rows.DataSource property at run-time, I do see the grid populated with the exact number of rows as that in the data-source's collection but all cells display nothing!!
Link Posted: 06-Aug-2005 23:13
1. Please use v. 1.0.10 Porblem with DataSource property code serialization is solved in this version.
2. Could you send us a sample to quickly fix this problem
Link Posted: 08-Aug-2005 00:58
Hi!

I have a similar problem and I'm using FlyGrid 1.0.10.24167.

I set the grid's datasource using Rows.SetDataBinding() and when I run my application there is a correct number of rows, but they are all empty.

Am I setting column field names incorrectly in the designer?

Object list that I bind to is an ArrayList.


Any help would be greatly appreciated.

Thomas
Link Posted: 08-Aug-2005 09:53
[quote="knight"]
I set the grid's datasource using Rows.SetDataBinding() and when I run my application there is a correct number of rows, but they are all empty.
Am I setting column field names incorrectly in the designer?
Object list that I bind to is an ArrayList.


See the Grid Stylizing Sample of FlyGrid Demo for the simple data structures to FlyGrid.Net or send us (develop @ 9rays.net) sample project to help you.
Link Posted: 28-Aug-2005 20:16
i would like to report the same problem.

using Array of objects.
Link Posted: 28-Aug-2005 20:34
using the latest version... freshly installed just hour ago and doesn't make good impression of new product.

flyGrid1.Rows.DataSource = myObjects;
or
flyGrid1.Rows.SetDataBindings(myObjects, string.Empty);

does the same thing. only scrollbar appears  but no columns and therefore no cells.

myObjects is simple Array of custom objects which works well with other third-party grids.
Link Posted: 29-Aug-2005 07:43
[quote="Anonymous"]
flyGrid1.Rows.DataSource = myObjects;
or
flyGrid1.Rows.SetDataBindings(myObjects, string.Empty);

does the same thing. only scrollbar appears  but no columns and therefore no cells.

myObjects is simple Array of custom objects which works well with other third-party grids.


Probably you forget to add at least one column.
Link Posted: 29-Aug-2005 14:25
dear guest,
i guess you're right