Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Simple Run-time data binding

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

Simple Run-time data binding
Link Posted: 12-Sep-2006 10:53
True 9Rays newbie here. Just downloaded and installed the Grid, and am having some troubles getting run-time databinding to work.

Here's the code I'm using:


dsCashFlow = cashflow.GetCashFlowList(investmentID) //returns a dataset
DataView dv = dsCashFlow.Tables[0].DefaultView;
dgFlyGrid.Rows.DataSource = dv;


There is no error message, but no rows/columns are displaying. Via debug I can see that the DataView is being populated, and that the DataGrid recognizes the data (dgFlyGrid.Rows.DataSource.Count is returning the correct number of rows).

Probably something simple, but just cant seem to figure it out.
Link Posted: 13-Sep-2006 01:03
You should add columns to display data in the grid.
You can do it at design-time - connect to datasource and click Initialize columns verb in the Properties of of selected FlyGrid.
See the video-lessons, that you can find on the FlyGrid product page, these lessons help you familiarize with the FlyGrid.