if (!this.fpdMainShow.ActiveSheet.GetValue(rowIndex, 21).Equals(null))
{
if (((FarPoint.Win.Spread.CellType.ComboBoxCellType)this.fpdMainShow.ActiveSheet.Cells[rowIndex, 21].CellType).Items.Length > 0)
{
cmbActiveType.Items.AddRange(((FarPoint.Win.Spread.CellType.ComboBoxCellType)this.fpdMainShow.ActiveSheet.Cells[rowIndex, 21].CellType).Items);
cmbActiveType.SelectedItem = this.fpdMainShow.ActiveSheet.GetValue(rowIndex, 21);
}
}
自己解决了!~
版主,这里不是官方的论坛吗? |