I want delete selected row directly from database. I wrote this code but it doesn't work correctly.

Here is my code but it doesn't delete record from my SQL server local db;

```
MyDataSet.Tables["ProductTable"].Rows[gridView1.GetFocusedDataSourceRowIndex()].Delete();

```