Datagrid Column headers not clearing?

FuturShoc

Active member
Joined
Jul 28, 2006
Messages
27
Location
Hot Springs, Arkansas
Programming Experience
3-5
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!
 
Back
Top