求助:获取单元格combobox的值:farpoint.web.spread.comboboxcelltype comb=new farpoint.web.spread.comboboxcelltype();
comb.datasource=ds.tables["fh"];
comb.datatextfied="aa";
comb.datavaluefield="bb";
fpspread1.sheets[0].cells[4,2].celltype=comb;
正常。选择这单元格,点击取值:
protected void button1_click(object sender,eventargs e)
{
string a1=fpspread1.activesheetview.cells[4,2].text;
取出的是null
string a2=fpspread1.activesheetview.cells[4,2]..value.tosting();
报错提示:未将对象引用设置到对象的实例
}
|