开发者

how to assign string variable to datable?

I h开发者_高级运维ave to assign string variable to datatable. dtHistoryList.Rows[1].ItemArray[3] = txtNaiyo.Text; It doesn't work. Please Help me.


Use the indexer

dtHistoryList.Rows[1][3] = txtNaiyo.Text

or

dtHistoryList.Rows[1]["rowName"] = txtNaiyo.Text
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜