Re: hide or remove a row from datagrid

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Raterus (raterus_at_spam.org)
Date: 06/03/04


Date: Thu, 3 Jun 2004 17:22:35 -0400

Well, either restrict the rows based on your sql statement, or taint your results by removing rows from the datasource before binding them to the datagrid. Or you could inherit from the Ring Class, and invoke the "OneRingToRuleThemAll" method, that seems to fix all my problems, perhaps yours?

"Samson" <dotheweb@yahoo.com> wrote in message news:4215e2a1.0406031315.1749fd8@posting.google.com...
> I have a datagrid bound to an employee database table, which looks
> something like this:
>
> FirstName LastName PhoneNumber Email
> ---------------------------------------------
> John Baggins 111-1111 jo@mail.com
> Frodo Baggins 222-2222 fr@mail.com
>
> I have a form that users use to get the results, and I'm trying to
> hide some employees (rows) from being displayed (I have some employees
> who don't want to be shown). Does anyone have any idea how to go with
> this?