how to get all the rows as well as the column headers from the datagrid to a list
<p>I am currently working on wingrid. In that.. after the data getting displayed in the wingrid, i want to take all the rows from the grid to new list including the column header.</p>

<p>In windows datagrid we will take the column header like this.</p>

<p>List cols = new List();
        // populate
        foreach (ColumnHeader column in Datagrid.Columns) {
            cols.Add(column);
        }</p>

<p>but in wingrid there is no class called columnHeader... </p>

<p>Kindly tell me how to take the columns name as well as the rows from the grid to the new list..</p>

<p>Regards,</p>

<p>Ram N</p>
