المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Filter DataTable



C# Programming
06-30-2009, 02:33 AM
Hey guys!

I have two datagridview's. Both have the same datasource (a datatable).
Now the datatable contains an email address in every row. I have a function to validate an email address.
I want to display the rows with malformed email-addresses in the second datagridview without loosing the connection to the datatable, so that if I delete a row in the second datagridview, it should also appear in the first datagridview.
Is it somehow possible to filter the rows in the second datagridview?
How would you solve this problem?

Thank you guys!

Skyline