I am doing this to clear the rows from my datagrid.Rows.Clear(); This deletes the rows, but leaves me the headers and I want to delete the columns as well, how do I do it?
the rows and columns are added by code datagrid.rows.add(), it is not filled with datasource and database.
Thanks.
try this. if you say you did not add it through a datasource