无法将“System.Windows.Forms.BindingSource”类型的对象强制转换为“System.Data.DataTable”。datagridview to the second datagridview that is data bound
Dim dt As DataTable = CType(frmEncodeDatabase.En
Control c in panPrev.Controls) if ((string)c.Tag == "cb") //these are ComboBoxes c.DataSource= ds01.Tables[0]; }错误1:'System.Windows.Forms.Control‘不包含’DataSource
clsMasterFunc.TableName = ctrl.Text; }但是,我得到了以下错误
'System.Windows.Forms.Control' does not contain a definition for 'DataSource' and no extension method '<
Dim dt As New DataTable()bsMain.DataSource = dgvMainLookUp.DataSourcedt = CType(bsMain.DataSource, DataTable)
无法将System.Windows.Forms.BindingSource类型的对象强制转换为System.Data.DataTable类型。将<em