W
William
I am trying to attach a combobox to a column in a table as follows:
daFiscalYear.Fill( dsFiscalYear );
cboFiscalYear.DataSource = dsFiscalYear.Tables["FiscalYear"];
cboFiscalYear.DisplayMember = "FiscalYearID";
da = data adapter
ds = dataset
cbo = combo box
The combobox was filled with the string: System.Data.DataRowView, for all
11 entries in the "FiscalYearID" column.
The strange part:
daResourceGroup.Fill( dsProjects );
cboSelectGroup.DataSource = dsProjects.Tables["ResourceGroup"];
cboSelectGroup.DisplayMember = "GroupName";
worked fine for displaying the column "GroupName" in table "ResourceGroup"
for the combo box cboSelectGroup.
Any suggestions as to why I am getting System.Data.DataRowView for the
combo box cboFiscalYear?
daFiscalYear.Fill( dsFiscalYear );
cboFiscalYear.DataSource = dsFiscalYear.Tables["FiscalYear"];
cboFiscalYear.DisplayMember = "FiscalYearID";
da = data adapter
ds = dataset
cbo = combo box
The combobox was filled with the string: System.Data.DataRowView, for all
11 entries in the "FiscalYearID" column.
The strange part:
daResourceGroup.Fill( dsProjects );
cboSelectGroup.DataSource = dsProjects.Tables["ResourceGroup"];
cboSelectGroup.DisplayMember = "GroupName";
worked fine for displaying the column "GroupName" in table "ResourceGroup"
for the combo box cboSelectGroup.
Any suggestions as to why I am getting System.Data.DataRowView for the
combo box cboFiscalYear?