This is a migrated thread and some comments may be shown as answers.

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

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Govindon
Top achievements
Rank 1
Govindon asked on 10 Apr 2016, 06:30 AM

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

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 12 Apr 2016, 10:52 AM
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.
Tags
Grid
Asked by
Govindon
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or