A
Alexander Pavlo
Guest
Hi All !
I'm developing a wizard that would be the easiest way for the user to create the SQL query and then it'd populate the DataGrid with it.
Here is my problem:
I'm using DataTable as a .DataSource to bind a data to the DataGrid. It works just fine but the user may remove all the tables from the query and then I'd have to show the empty DataGrid (without any traces of the previous queries). I do that by setting the empty DataTable to the .DataSource of my DataGrid. It shows me the empty DataGrid but it keeps the ScrolBars from the old query.
How can I remove that scrols or how do I bind the empty .DataSource to the DataGrid in my case?
Thanks!
I'm developing a wizard that would be the easiest way for the user to create the SQL query and then it'd populate the DataGrid with it.
Here is my problem:
I'm using DataTable as a .DataSource to bind a data to the DataGrid. It works just fine but the user may remove all the tables from the query and then I'd have to show the empty DataGrid (without any traces of the previous queries). I do that by setting the empty DataTable to the .DataSource of my DataGrid. It shows me the empty DataGrid but it keeps the ScrolBars from the old query.
How can I remove that scrols or how do I bind the empty .DataSource to the DataGrid in my case?
Thanks!