Delete row from binding source

  • Thread starter Thread starter Shan1986
  • Start date Start date
S

Shan1986

Guest
Hallo,

I have a datatable and bound to bindingsource, following code deletes the row when my data table has more than 1 row . If i have only one row it removes from the datagridview but it does not delete from the datatable. if i check the count on my datatable it still shows 1.

Try
Dim eqID As Int32 = dGv.Rows(dgv_selected_index).Cells(dtEQID).value
Dim eID_Indx As Integer = EQ_BS.Find(dtEQID, eqID)
EQ_BS.RemoveAt(eID_Indx)
Catch
End Try

How do i properly delete row from bindingsource?.

Can i also delete directly from datatable?

Thanks

Continue reading...
 
Back
Top