Properly clear columns for Result grid in frmSQL_DESIGNER
This commit is contained in:
@@ -157,6 +157,8 @@ Public Class frmSQL_DESIGNER
|
|||||||
Dim ds As DataSet = ExecuteWithConnection(cmbConnection.SelectedValue, query)
|
Dim ds As DataSet = ExecuteWithConnection(cmbConnection.SelectedValue, query)
|
||||||
|
|
||||||
If ds IsNot Nothing Then
|
If ds IsNot Nothing Then
|
||||||
|
GridView1.Columns.Clear()
|
||||||
|
GridView1.PopulateColumns(ds.Tables(0))
|
||||||
GridControl1.DataSource = ds.Tables(0)
|
GridControl1.DataSource = ds.Tables(0)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user