Take the 2-minute tour ×

I have a gridview that is populated by a dataset and I want to remove the specfic item that the user selected in the gridview..

How I am able to remove the selected item?

share|improve this question
What code have you tried so far? –  Kev Ritchie Jan 10 '12 at 15:58
I have a devexpress gridview...I tried to get the selected row in gridview and delete the row in datatable base on the number of the selected row.. –  Prince Jea Jan 10 '12 at 16:41

1 Answer 1

up vote 0 down vote accepted

first of all, you need to set a primary column in the datatable.

then you can try this code:

Dim xID as string = "S-0001"

oProspectusContent => is the name of the dataset

share|improve this answer

Your Answer


