C
Chris Barrow
Hi everyone,
I am trying to apply a dataview to a grid's datasource,
but it doesn't seem to be working. Here are the codes:
Dim objView as New DataView(odsMembers.Tables("DataTable"))
objView.RowFilter = "Active = " & mActive
e.DataSource = objView
(where mActive = true or false). The sql server equivalent
is bit of course, so I am not sure if I should use true or
false keywords or 1,0.
Again, I am only trying to show rows in the grid that
match this filter, but currently, all of the rows in the
original datatable are stilled being displayed. Have I
done something wrong here? Any feedback would be greatly
appreciated.
Thanks,
Chris...
I am trying to apply a dataview to a grid's datasource,
but it doesn't seem to be working. Here are the codes:
Dim objView as New DataView(odsMembers.Tables("DataTable"))
objView.RowFilter = "Active = " & mActive
e.DataSource = objView
(where mActive = true or false). The sql server equivalent
is bit of course, so I am not sure if I should use true or
false keywords or 1,0.
Again, I am only trying to show rows in the grid that
match this filter, but currently, all of the rows in the
original datatable are stilled being displayed. Have I
done something wrong here? Any feedback would be greatly
appreciated.
Thanks,
Chris...