470,586 Members | 1,338 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,586 developers. It's quick & easy.

How to let user delete multi rows from the BindingSource

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
2 3153

"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
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.

Similar topics

reply views Thread by Gordon | last post: by
6 posts views Thread by phonl | last post: by
4 posts views Thread by Andy_Khosravi | last post: by
11 posts views Thread by John J. Hughes II | last post: by
2 posts views Thread by Michael | last post: by
3 posts views Thread by =?Utf-8?B?VG9yZW4gVmFsb25l?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.