How to get a value from a column in a DataView?

后端 未结 4 1211
旧巷少年郎
旧巷少年郎 2021-01-04 23:48

I have a dataview defined as:

DataView dvPricing = historicalPricing.GetAuctionData().DefaultView;

This is what I have tried, but it return

4条回答
  •  生来不讨喜
    2021-01-05 00:35

    for anyone in vb.NET:

    Dim dv As DataView = yourDatatable.DefaultView
    dv.RowFilter ="query " 'ex: "parentid = 1 "
    for a in dv
      dim str = a("YourColumName") 'for retrive data
    next
    

提交回复
热议问题