Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Connecting to DataSet

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

Connecting to DataSet
Link Posted: 27-Jan-2007 04:39
I am tryingto load data from a Filemaker database through ODBC. With the MS Grid this works:

            System.Data.DataSet ds = new System.Data.DataSet();
            try
            {
                da.Fill(ds, \"Members\");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

          
            dataGridView1.DataSource = ds.Tables[\"Members\"];



How is this done with FlyGrid? flyGrid1.Rows.Datasource = ds.Tables[\"Members\"];

,but  it just fills the cells with junk.
Link Posted: 27-Jan-2007 06:24
Before connecting to datasource you should initialize columns - universal code for initialization you can take in the FlyGrid.Demo code (databoundGridForm.cs (or .vb), PrepareColumns method ) or initialize columns at design-time (in this case you should connect to datasource and click on InitializeColumns verb)