• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

Filtering DataView Twice C#

I have a dataview which is populated by a dataset table.
This dataview is used for my datagridview.I have a contextMenuStrip on this datagridview.
I am able to filter this dataview fine but after filtering once  if i'll filter again it give me data from main dataview.I want it to filter the current datagridview not the orginal one.
It will be like filtering twice but in steps.

1 Solution
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you add a second condition to the dataview's rowfilter property
dataview.RowFilter = " your_original_condition AND your_additional_condition "

Open in new window

Rahul Goel ITILSenior Consultant - DeloitteCommented:

dataview.RowFilter = "column like %sss%"

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now