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
精彩评论