0
我有以下,但需要添加更多列以過濾。我正在嘗試使用的語法出錯。VB.NET table.sort與多列
Dim ldv1 As System.Data.DataView
ldv1 = tbl1.DefaultView
ldv1.Sort = (tbl1.Columns(0).ColumnName) & " Asc" <-- I want to add to this
我試圖做這樣的事情,但未能:
ldv1.Sort = (tbl1.Columns(0).ColumnName) & " Asc",(tbl1.Columns(1).ColumnName) & " Asc"
OR
ldv1.Sort = (tbl1.Columns(0).ColumnName), (tbl1.Columns(1).ColumnName) & " Asc"
似乎都不是正確的做法。我如何按更多列排序?