Home Forums WinForms controls Xceed Grid for WinForms Get columns from dataadapter but not data Reply To: Get columns from dataadapter but not data

User (Old forums)
Member
Post count: 23064

There are a few possible solutions.

You can clear the DataRows collection after the gird has created them, which is of course not very good if you have a lot of DataRows.

You can also never call the Fill method of the DataAdapter, so the DataSet has its columns, but is empty. Once you bind the grid to it, the columns will be created with no rows.

You can also fill the DataSet, then loop on the tables and columns into the DataSet to create a template DataSet, and then bind the grid to this row-less DataSet.

Imported from legacy forums. Posted by André (had 405 views)