A
Alexander Pavlo
Guest
Hi All !
Im developing a wizard that would be the easiest way for the user to create the SQL query and then itd populate the DataGrid with it.
Here is my problem:
Im 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 Id 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!
Im developing a wizard that would be the easiest way for the user to create the SQL query and then itd populate the DataGrid with it.
Here is my problem:
Im 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 Id 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!