Solved

Filtering DataView Twice C#

Posted on 2009-07-03
2
545 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 ITIL
ID: 24771573

dataview.RowFilter = "column like %sss%"

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reference issues in Visual Studio 3 30
Footer for each row on Gridview 2 21
VB.NET 2008 Publish Error 2 27
Release Dynamically Allocated Memory in C# 3 25
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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