System.Data.Datarow C# error

后端 未结 6 613
傲寒
傲寒 2021-01-19 04:06

So I\'m in the verge of creating my first C# system. I use my vb.net system to use as my reference.

This is the code on my vb.net system:

Dim value A         


        
6条回答
  •  再見小時候
    2021-01-19 04:39

    You could also try the Field Method on DataRow which would look like this:

    int value = dr.Rows[0].Field("TransID");
    

    http://msdn.microsoft.com/en-us/library/system.data.datarowextensions.field

提交回复
热议问题