You can use a BindingSource object as the datasource of the grid, and set
the datasource of the bindingsource object to a type. At runtime you can
assign the datasource property of the bindingsource object to a collection
of that type, such as a ReadOnlyCollection or a ObservableCollection object
--
Sheng Jiang
Microsoft MVP in VC++
"Jeff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> .NET 2.0
> VS2005
>
> I'm wondering if it possible to bind an IEnumerable list directly to a
> DataGridView? if it is possible then I'm wondering how it should be done?
>
> I ask because I think it must be better to use that, than the implementing
a
> foreach loop adding a row to the DataGridView for every element in the
> IEnumerable list...
>
> Any suggestions?
>
> Jeff
>
>
|