Inserting the same data into 2 or more consecutive rows at the same time.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emeped
    New Member
    • Feb 2008
    • 2

    Inserting the same data into 2 or more consecutive rows at the same time.

    I am using C#.NET 2003. Please I want to know if it is possible and how to insert the same data into 2 or more consecutive rows in a datatable column, at the same time, by a single click of a button. Data will be from a textbox bound to the column.

    Thanks.
  • indianmaestro
    New Member
    • Mar 2008
    • 16

    #2
    on click event call the insert function two times, and make sure the table does not contain any coloumn with primary key

    Comment

    • emeped
      New Member
      • Feb 2008
      • 2

      #3
      Originally posted by indianmaestro
      on click event call the insert function two times, and make sure the table does not contain any coloumn with primary key
      Thanks. Please I wouldn't mind some codes in C#. Thanks.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Originally posted by emeped
        Please I wouldn't mind some codes in C#.
        Well do you know how to do it ONE time? Because then you would just run that code twice.

        Comment

        Working...