FuturShoc
Active member
I have a datagrid in which I display rows from a table. Works fine.
My problem comes when I run a query that returns differing columns from the query before it. Instead of "clearing" the previous columns and displaying only the column headers relavent to the current query, the gridview ADDS to the column headers present from the first. This ends up showing me columns that are completely null and unrelated to the current query.
Remember, its not that I get residual *rows*. That isn't the problem.
I get residual column headers.
Does anyone have any suggestions on how I might "flush" those column headers before displaying subsequent query results in my datagrid?
Thanks in advance!
My problem comes when I run a query that returns differing columns from the query before it. Instead of "clearing" the previous columns and displaying only the column headers relavent to the current query, the gridview ADDS to the column headers present from the first. This ends up showing me columns that are completely null and unrelated to the current query.
Remember, its not that I get residual *rows*. That isn't the problem.
I get residual column headers.
Does anyone have any suggestions on how I might "flush" those column headers before displaying subsequent query results in my datagrid?
Thanks in advance!