Solved

Filtering DataView Twice C#

Posted on 2009-07-03
2
540 Views
Last Modified: 2013-12-17
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.

0
Comment
Question by:WannabeNerd
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 24771512
you add a second condition to the dataview's rowfilter property
dataview.RowFilter = " your_original_condition AND your_additional_condition "

Open in new window

0
 
LVL 9

Expert Comment

by:Rahul Goel
ID: 24771573

dataview.RowFilter = "column like %sss%"

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now