2
Reply

What is the alternate way to replace Dataset to bind data in Datagrid.

Supratik De

Supratik De

14y
3.9k
0
Reply

    You can use the List<> of object.Then bind the list to the data grid.

    List<Object> items;
    then add items to the List then 
    Gridview1.DataSource= items;
    Gridview1.dataBind();

    I know we use Dataset component to bind the data into datagrid,but if we don't use the Dataset what is the alternate way or what is the class which Datagrid supoorts to bind data. i.e. if we want to write a class to bind data in Datagrid then which class should we use.