By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,728 Members | 2,462 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,728 IT Pros & Developers. It's quick & easy.

How to let user delete multi rows from the BindingSource

P: n/a
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

Mar 16 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"MMSJED" <MM****@discussions.microsoft.comwrote in message
news:75**********************************@microsof t.com...
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&sa=X&oi=spell&resnum=0&ct=result&cd=1 &q=how+to+delete+multiple+rows+in+a+datagrid+.net& spell=1>

Mar 16 '08 #2

P: n/a
Thank you
Sorry for wasting your time
"Mr. Arnold" wrote:
>
"MMSJED" <MM****@discussions.microsoft.comwrote in message
news:75**********************************@microsof t.com...
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&sa=X&oi=spell&resnum=0&ct=result&cd=1 &q=how+to+delete+multiple+rows+in+a+datagrid+.net& spell=1>

Mar 17 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.