我是这么写的,但查不出数据...
FarPoint.Web.Spread.ComboBoxCellType cb1 = new FarPoint.Web.Spread.ComboBoxCellType();
FpSpread1.Sheets[0].Columns[0].CellType = cb1;string text = "";
foreach (EPMS_QuoteCode code in d.GetQuoteCodeByTarget("code1").ToList())
{
text += code.QuoteCode_Name + ",";
}
text = text.Substring(text.Length - 1);
int cont = d.GetQuoteCodeByTarget("code1").ToList().Count();
string[] c1 = text.Split(',');
cb1.Items = c1; |