Unbound datagrid

T

TonyJ

Hello!

I have read about using databound datagrid which is connected to a table in
the datasource for example a database table.

Now I wonder is it possible to use unbound datagrid which is not connected
to a database table.

Do you have some good example somewhere?

//Tony
 
G

Guest

Hi Tony

It is possible to have a datagrid that is not bound to a database table.
You can create your datatable/dataset by hand and bind that to the
datagrid.datasource.

Create your table.
Add columns to the table.
Bind the table to the DataGrid datasource.

Everything you need should be in the MSDN.

Or, this link shows a quick example.

http://www.thescripts.com/forum/post1027846-3.html

HTH
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


You can use a collection, or even an array.
The closest to a DB without usig one is using a dataset
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top