DataView dv = new DataView(dataSet1.表名,"要查的字段名 = '值'","要查的字段名 ",DataViewRowState.CurrentRows);
DataGrid1.DataSource = dv;
DataGrid1.DataBind();

解决方案 »

  1.   

    直接构造查询字符串,过滤掉就行了。
    qiushuiwuhen(秋水无恨)的做法是最简单的了 。
      

  2.   

    Dim dv As DataView
            tbl1 = DownLoadFLH1.Tables(0)
            dv = New DataView(tbl1)      
            With dv
                .AllowDelete = True
                .AllowEdit = True
                .AllowNew = True
                '注意写法
                '.RowFilter = "分类名 ='软件.音频视频'"
                .RowFilter = "分类名 ='" & DropDownFLH.SelectedItem.Text & "'"
            End With