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?

4 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Govindon
Top achievements
Rank 1
Govindon asked on 08 Apr 2016, 04:49 PM
I have one scenario where the gridview has 2 rows like what i have attached.

Gridview having data as like I have mentioned in the file.

COLUMN 3 to COLUMN 6 having texbox where the values are entered by the user

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
Even if the user clicks again the button the old rows should not get affected.




4 Answers, 1 is accepted

Sort by
0
Govindon
Top achievements
Rank 1
answered on 08 Apr 2016, 04:59 PM
I need the above coding in VB.NET
0
Viktor Tachev
Telerik team
answered on 12 Apr 2016, 10:41 AM
Hello Govindon,

Please examine the following resources that describe how you can add and edit records in a RadGrid control.


Have in mind that automatic operations are available only with declarative DataSource controls. If you bind the grid via the NeedDataSource event you would need to use manual CRUD operations.


If you would like to insert a default value in some of the columns you can define the DefaultInsertValue property for the columns.


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.
0
Govindon
Top achievements
Rank 1
answered on 14 Apr 2016, 07:15 AM
The scenario which I asked does not match with what you have answered. Please check my scenario with my attached file and let me know about that at the earliest.
0
Viktor Tachev
Telerik team
answered on 18 Apr 2016, 12:51 PM
Hello Govindon,

You can use the provided resources as reference that would get you started on using CRUD operations in RadGrid. If you have any specific issues/queries regarding the controls you can ask in the forums or submit a formal support ticket.

With that said, please note that implementing complete runnable projects based on a specific scenario falls outside the scope of our standard support services.

If you would like to have your scenario implemented for you can contact our partners that can provide such services:



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
Govindon
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or