DBEngine.WindowType = 1'设置查询窗体类型为1
MainGrid.SetTableXML("")
MainGrid.SetEditable(false)
MainGrid.SetListMode(true)
MainGrid.AutoSizeColumns()