Binding to DataGrid

L

Luis Arvayo

Does anyone have one example binding a DataGrid that implements the
interface IListSource or IList ?

I need to implement binding to a DataGrid but by means of not using a
DataTable because the data is created at runtime.

Thanks in Advance.
 
T

The Crow

will you bind it to web grid or win grid? if web grid, any datasource
implemented IEnumarable is enough. but in case of win grid, even IEnumarable
is enough, you will miss lots of functionalty like sorting, adding new rows
etc. i suggest, even data is created at runtime, you can create a table, add
columns, and fill with rows.
 
L

Luis Arvayo

It is a win grid.

I think I will follow your advice because I need to update the source table
anyway.

Thank you.
 
D

Dmytro Lapshyn [MVP]

Luis,

I have once implemented a fully custom data source object by using
ILIstSource etc. It is a really tedious task, and unless you have really
good reason not to use a DataTable, I'd suggest you followed the The Crow's
advice.
 

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