开发者

how to assign string variable to datable?

开发者 https://www.devze.com 2023-03-25 02:42 出处:网络
I h开发者_高级运维ave to assign string variable to datatable. dtHistoryList.Rows[1].ItemArray[3] = txtNaiyo.Text;

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

精彩评论

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

关注公众号