Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 forms, 1st form is having data grid view and with 5 columns(sender name, address,subject,body and attachment) what i need to do is i need to filter from e-mail address (i am having another form in between 1st and 2nd to enter e-mail address) and copy those filtered data to data grid view in 2nd form. i think using data tables i can do it but couldn't get idea to write code. can u pls send me a example how can i do it.
Posted

1 solution

If the DataGridView on your second form has been set up in the normal way there will be a BindingSource component for it. Simply set the Filter property of the BindingSource using the e-mail address you have obtained from your intermediate form.

What is displayed on your first form is to all intents irrelevant except that your second form should be identical before the filter is applied.

BindingSource.Filter[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900