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

Editing behaviour like ASP.NET Grid

5 Answers 185 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benson
Top achievements
Rank 1
Benson asked on 29 Aug 2007, 05:07 AM
I am very impressed with using RadGridView in ASP.NET that when I click "edit" button on the Grid record, a templateform is shown and users can input and save data.

But how this kind of features handled in Telerik WinForm GridView? Or in WinForm GridView only provides Grid presentation or editing on the grid record?

My requiement:
1. click "add" or "edit" buttons, show a editing form (because need to process many fields, using a form format is better)
2. click "ok" or "cancel" buttons back to the grid and grid may need to be refreshed.

Benson.

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Sep 2007, 08:36 AM
Hello Benson,

Thank you for the interest on RadGridView.

I have attached a sample application with a simple implementation of custom row editor for RadGridView. The custom editor shows all records from the current row which you can edit.

The edit process begins after clicking in a cell (in the RadGridView EditorRequired event) and finishes when pressing the Update or Cancel buttons on the edit form.

FYI, each custom editor should implement the ICellEditor interface to provide plugable mechanism for the editing process. The editor should finish the editing process when the Validated is fired. This will notify RadGridView that editing has ended.

Again, this example is very simple and demonstrates how to add custom editors to RadGridView.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Benson
Top achievements
Rank 1
answered on 06 Sep 2007, 01:42 AM
After downloading and installing, I found some errors. I listed 1 of them:
Error 3 'Telerik.WinControls.UI.GridViewCellInfo' does not contain a definition for 'CellElement' D:\YekoProject\test\061889_GridEditingForm\GridEditingForm\EditingForm.cs 46 56 GridEditingForm

My version is RadControlsWinforms_Q1_2007_SP2_dev_setup.exe.
Please help.

Benson.
0
Dimitar Kapitanov
Telerik team
answered on 06 Sep 2007, 06:07 AM
Hello Benson,
The omission is on our side. We released Beta of our Q2 2007 release, and the example is prepared with the beta assemblies. Please download the Beta release and give it a try. The example should work correctly.

Regards,
Dimitar Kapitanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John Bernard
Top achievements
Rank 1
answered on 30 Jan 2010, 09:28 PM

Is there a winforms C# code sample that acts like the asp.net example in http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx?  JEB

 

0
Jack
Telerik team
answered on 01 Feb 2010, 10:11 AM
Hello John Bernard,

This functionality is not supported directly by RadGridView. However, you can place a user control that contains custom editors inside grid a cell. Please consider Row Details example in our Demo application. The following KB article demonstrates how to add custom elements inside grid cells. You should wrap your control inside RadHostItem.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Benson
Top achievements
Rank 1
Answers by
Peter
Telerik team
Benson
Top achievements
Rank 1
Dimitar Kapitanov
Telerik team
John Bernard
Top achievements
Rank 1
Jack
Telerik team
Share this question
or