RT.把數據從DB從讀出來,像ASP中那樣直接Bind上去,而不是一條一條的讀取SHOW出來,有誰知道怎麼做的嗎? 我們現在的做法是
for(int i = ;i<rs.RecordCount;i++)
{
this.fpSpread1_Sheet1.Cells[i,0].Text = aa;
this.fpSpread1_Sheet1.Cells[i,1].Text = bb;
this.fpSpread1_Sheet1.Cells[i,2].Text = cc; rs.MoveNext();
}我現在想直接Bind,this.fpSpread1.DataBindings();要怎麼樣才能實現?
for(int i = ;i<rs.RecordCount;i++)
{
this.fpSpread1_Sheet1.Cells[i,0].Text = aa;
this.fpSpread1_Sheet1.Cells[i,1].Text = bb;
this.fpSpread1_Sheet1.Cells[i,2].Text = cc; rs.MoveNext();
}我現在想直接Bind,this.fpSpread1.DataBindings();要怎麼樣才能實現?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货