Unable to change DataRow value

后端 未结 1 1083
予麋鹿
予麋鹿 2020-12-11 11:28

I want to change a Datarow value. I want to change DT2[0].ItemArray[3] I tried this code, but it didn\'t work.

private void Func(D         


        
相关标签:
1条回答
  • 2020-12-11 12:05

    With the ItemArray Property you get or set the ENTIRE array, not a single value.

    Use this to set the fourth item:

     DT2[0][3] = 3;
    
    0 讨论(0)
提交回复
热议问题