how can we bind datagrid with custom collection
-
hi frends........ can anybody help me how to bind custom collection to a datagrid thanks in advance soori soori
By setting the data source of the data grid.
Christian Graus - C++ MVP
-
By setting the data source of the data grid.
Christian Graus - C++ MVP
-
Although the question is very vague on what you want to do let see if this helps. You can create a custom collection by implementing IList, IEnumerable etc interfaces or extending a CollectionBase class to store whatever object you want to specialize to. In order to sent a Custom Collection to a DataGrid it should be one of the following A DataTable A DataView A DataSet A DataViewManager Any component that implements the IListSource interface Any component that implements the IList interface CustomCollection implements IList interface so it will work as a DataSource to DataGrid. Hope this helps.