How to let user delete multi rows from the BindingSource

M

MMSJED

How to let user delete multi rows from the BindingSource
I have in my program datagridview bound it to sql table
Throw Bindingsource

To fill it:

MyTableTableAdaptor.fill(MyDataset.Mytable);


MyTableBindingSource.datasource = MyDataset;
MyTableBindingSource.datamember = MyDataset;


Datagridview.datasource = MyTableBindingSource;


To delete from it:

MyTableBindingSource. Removecurrent();

This only removes one item at the time so how I can let the user delete
multi selected rows

Thank you in advance
 
M

Mr. Arnold

MMSJED said:
How to let user delete multi rows from the BindingSource
I have in my program datagridview bound it to sql table
Throw Bindingsource

To fill it:

MyTableTableAdaptor.fill(MyDataset.Mytable);


MyTableBindingSource.datasource = MyDataset;
MyTableBindingSource.datamember = MyDataset;


Datagridview.datasource = MyTableBindingSource;


To delete from it:

MyTableBindingSource. Removecurrent();

This only removes one item at the time so how I can let the user delete
multi selected rows

You'll figure it out.

<http://www.google.com/search?hl=en&...lete+multiple+rows+in+a+datagrid+.net&spell=1>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top