You actually don't have to connect it to a database. All the data-aware controls can
be connected to disconnected datasets, which you can eumlate in code. It requires you
to create the correct type of list, however. I don't have any example handy, but you
should be able to find one pretty easy. Basically you create a dataset with:
DataSet dsCustomers = new DataSet();
Then do something like:
dgCustomers.DataSource = dsCustomers;
dgCustomers.DataMember = "Customers";
where dlgCustomers is the datagrid. The main problem you have is that a dataset can have multiple tables in it, and you need to create and fill just one of them. In this case you are telling the grid to use the "Customers" table in the dataset dsCustomers. I don't, off hand, remember how to fill the dataset in code. I know you will have to create the table within the dataset, and then fill it. Search help for dataset for starters.
-- Larry Maturo