Solved

Filtering DataView Twice C#

Posted on 2009-07-03
2
533 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
Comment Utility
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
Comment Utility

dataview.RowFilter = "column like %sss%"

Open in new window

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

7 Experts available now in Live!

Get 1:1 Help Now