How I can remove or hide a row datagrid without removing
from database ?

Re: How to Remove or Hide a row in datagrid? by Alen

Alen
Tue Sep 09 08:12:11 CDT 2003

Like this (suppose you have a DataTable Table1):

foreach( DataRow myRow in Table1.Rows)
{
if( condition_to_remove == true)
{
myRow.Delete();
}
}

"Alireza" <emrani@irantao.com> wrote in message
news:O8OelNtdDHA.1128@tk2msftngp13.phx.gbl...
> How I can remove or hide a row datagrid without removing
> from database ?
>
>



Re: How to Remove or Hide a row in datagrid? by Ulrich

Ulrich
Wed Sep 10 12:03:22 CDT 2003

Hi,
Bind your datagrid to a DataView that is based on the DataTable. The DataView has Sort and Filter properties. Setting the filter to
your needs will suppress the rows you don't want to see.
Ulrich

"Alireza" <emrani@irantao.com> schrieb im Newsbeitrag news:O8OelNtdDHA.1128@tk2msftngp13.phx.gbl...
> How I can remove or hide a row datagrid without removing
> from database ?
>
>