ぴゅーもんブログ

カナダ生まれの日本育ち白イルカ(ベルーガ)のぬいぐるみぴゅーもんのブログです、ハワイにもいったよ〜(不定期のんびり更新)

ADO.NETのDataSetにフィルターをかける(めも)

ADO.NET : データにフィルタをかける
' Sort the view based on the FirstName column
myDataView.Sort = "CustomerID"
' Filter the dataview to only show customers with the CustomerID of ALFKI
myDataView.RowFilter = "CustomerID='ALFKI'"
DataView.RowFilter プロパティ
null 値が格納されている列だけを返すには、次の式を使用します。
"Isnull(Col1,'Null Column') = 'Null Column'"