vb.net - using RowFilter without clearing it -
i have datatable follows
id name type 1 ram employee 2 john supplier 3 uma employee 1 ravi supplier i assigned partydv. using rowfilter as
partydv.rowfilter = "type = 'supplier'" after using rowfilter in same dv. in not clearing rowfilter.
partydv.rowfilter = "id = 1" what answer
a) id name type 1 ravi supplier b) id name type 1 ram employee 1 ravi supplier a or b?
it looks answer "b" have figured out running code!
basically when execute following lines of code:
partydv.rowfilter = "type = 'supplier'" partydv.rowfilter = "id = 1" the second override first. don't add up.
if wanted use both filters may try this:
partydv.rowfilter = "type = 'supplier' , id = 1"
Comments
Post a Comment