Datatable select with multiple conditions

前端 未结 7 1991
再見小時候
再見小時候 2020-12-02 17:03

I have a datatable with 4 columns A, B, C and D such that a particular combination of values for column A, B and C is unique in the datatable.

Objective:

7条回答
  •  醉话见心
    2020-12-02 17:20

    Dim dr As DataRow()
    
    
    dr = dt.Select("A="& a & "and B="& b & "and C=" & c,"A",DataViewRowState.CurrentRows)
    

    Where A,B,C are the column names where second parameter is for sort expression

提交回复
热议问题