How to let user delete multi rows from the BindingSource

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?TU1TSkVE?=

    #1

    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:

    MyTableTableAda ptor.fill(MyDat aset.Mytable);


    MyTableBindingS ource.datasourc e = MyDataset;
    MyTableBindingS ource.datamembe r = MyDataset;


    Datagridview.da tasource = MyTableBindingS ource;


    To delete from it:

    MyTableBindingS ource. Removecurrent() ;

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

    Thank you in advance

  • Mr. Arnold

    #2
    Re: How to let user delete multi rows from the BindingSource


    "MMSJED" <MMSJED@discuss ions.microsoft. comwrote in message
    news:75929D92-5F23-4A29-8379-AEA37A6E03DE@mi crosoft.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:
    >
    MyTableTableAda ptor.fill(MyDat aset.Mytable);
    >
    >
    MyTableBindingS ource.datasourc e = MyDataset;
    MyTableBindingS ource.datamembe r = MyDataset;
    >
    >
    Datagridview.da tasource = MyTableBindingS ource;
    >
    >
    To delete from it:
    >
    MyTableBindingS ource. 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&res num=0&ct=result &cd=1&q=how+to+ delete+multiple +rows+in+a+data grid+.net&spell =1>

    Comment

    • =?Utf-8?B?TU1TSkVE?=

      #3
      Re: How to let user delete multi rows from the BindingSource

      Thank you
      Sorry for wasting your time


      "Mr. Arnold" wrote:
      >
      "MMSJED" <MMSJED@discuss ions.microsoft. comwrote in message
      news:75929D92-5F23-4A29-8379-AEA37A6E03DE@mi crosoft.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:

      MyTableTableAda ptor.fill(MyDat aset.Mytable);


      MyTableBindingS ource.datasourc e = MyDataset;
      MyTableBindingS ource.datamembe r = MyDataset;


      Datagridview.da tasource = MyTableBindingS ource;


      To delete from it:

      MyTableBindingS ource. 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&res num=0&ct=result &cd=1&q=how+to+ delete+multiple +rows+in+a+data grid+.net&spell =1>
      >
      >

      Comment

      Working...