The datagrid retrieves its data from the underlying datasource which is
usually a dataset. The simplest way is to just remove the row in the dataset
and rebind the datagrid. If it is not in the dataset, it cannot possibly
show up in the datagrid. You would need to first find the row to be deleted
(from the selecteditem) and just do a find on the dataset and use the delete
property of the dataset row to clean out the dataset.
hth
--
-----------
Got TidBits?
Get it here:
www.networkip.net/tidbits/default.htm
"Eric" <> wrote in message
news: m...
> How can you delete a DataGrid item row? I found a couple threads on
> how to hide the row (using MyDataGrid.Items(n).Visible = False). This
> does work, but I need to physically remove the information from the
> grid, not just hide it. Any ideas?
>
> Thanks in advance,
>
> Eric