HOW TO ADD A NEW ROW IN EXISTING RAD GRIDVIEW WITH NO LOSS OF DATA IN THE GRIDVIEW?

2 posts, 0 answers
  1. Govindon
    Govindon avatar
    10 posts
    Member since:
    Apr 2016

    Posted 10 Apr Link to this post

    I have one scenario where the Telerik RAD gridview has 2 rows.

    Gridview having data as like I have mentioned below.
    COLUMN1            COLUMN2            COLUMN3          COLUMN4               COLUMN5               COLUMN6
          a                          b                    TEXTBOX1          TEXTBOX2               TEXTBOX3               TEXTBOX4

          a                          b                    TEXTBOX5          TEXTBOX6               TEXTBOX7               TEXTBOX8

    COLUMN 3 to COLUMN 6 having texbox where the values are entered by the user
    The user enters a value for TEXBOX1, TEXBOX2, TEXBOX3, TEXBOX4, TEXBOX5, TEXBOX6, TEXBOX7, TEXBOX8

    COLUMN 1 and COLUMN 2 of ROW 1 and ROW 2 will have the same value as mentioned.

    I need to know how to add a new row in the grid if the button is clicked

    And the entered value should not get affected. It should be present.
    The new row should be added with COLUMN1 and COLUMN 2 having same name as that of the ROW 1 and ROW 2
    After clicking on the button the new row should be like below

    COLUMN1            COLUMN2            COLUMN3          COLUMN4               COLUMN5               COLUMN6
          a                          b                    TEXTBOX1          TEXTBOX2               TEXTBOX3               TEXTBOX4

          a                          b                    TEXTBOX5          TEXTBOX6               TEXTBOX7               TEXTBOX8

          a                          b                    TEXTBOX9          TEXTBOX10             TEXTBOX11             TEXTBOX12
    When the new row is added the user entered value for TEXBOX1, TEXBOX2, TEXBOX3, TEXBOX4, TEXBOX5, TEXBOX6, TEXBOX7, TEXBOX8 should not get changed or should not get changed.

    TEXTBOX9, TEXTBOX10, TEXTBOX11, TEXTBOX12 should be empty for entering value.

    Even if the user clicks again the button the old rows should not get affected.
    I want to know how to code for this in VB.NET since I am using telerik rad gridview

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 12 Apr Link to this post

    Hello,


    I have replied to your query in the other thread you have submitted. I suggest we continue the conversation there.

    Please avoid submitting duplicate threads. This will help us keep better track of your support history and enable us to provide answers faster.


    Regards,
    Viktor Tachev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top