Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Filtering DataView Twice C#

Posted on 2009-07-03
2
553 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 143

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 ITIL
ID: 24771573

dataview.RowFilter = "column like %sss%"

Open in new window

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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