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

EditForm in RadGridView for WinForms

3 Answers 267 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Holger
Top achievements
Rank 1
Holger asked on 18 Mar 2016, 03:31 PM

    The Web-Version of RadGridView, has the EditForm Mode, to edit the Content of a row, with some customized Control.

In the WinForms Version of RadGridView I'm missing this Mode.

There are GridViewTemplates and Grouping and Hierarchy Staff, that 'expand' a Row,

that link to different tables or different rows.

 

I haven't found any example, to expand just an Edit Control of the Row, with a more appealing presentation, when inside cells, for example.

How do I edit the row itself in the expanded part - without having a Hierarchie of anything.

The overwie page, has something almost like that:

http://docs.telerik.com/devtools/winforms/gridview/overview
But this is Non-Edit (I assume)

and it does not come with the source Code.

Also the Webinar does not handle GridViewTemplates.

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Mar 2016, 03:51 PM
Hello Holger,

Thank you for writing.

Please refer to the following KnowledgeBase article which is quite useful on this topic: http://www.telerik.com/support/kb/winforms/gridview/details/create-pop-up-user-control-for-row-editing

As to the screenshot from the overview article, note that this is a custom implementation of the hierarchy presentation and a sample example is available in our Demo application >> GridView >> Hierarchy >> Tabbed Views example.

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Holger
Top achievements
Rank 1
answered on 18 Mar 2016, 05:55 PM

Thank you,

the popup is kind of a second-best solution. Solves the "space" problem, looks less sophisticated.

Found the 'tabbed View', that seems to stick to the 'Tab' all the time. Untabbed is not possible ?
The form itself is constructed as a Html-Table (HtmlViewDefinition), instead of just using Windows-Forms Designer.

And it is readonly.


How come, such a definition:
table.Columns.Add("Photo", typeof(byte[]));

leads to "GridImageCellElement". Is byte[] strictly reserved for images ?

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Mar 2016, 08:31 AM
Hello Holger,

Thank you for writing back. 

The Tabbed Views example uses HtmlViewDefinition for the Details tab in the child templates. Thus, you can construct the desired cells arrangement. Additional information is available here: http://docs.telerik.com/devtools/winforms/gridview/view-definitions/html-view

Note that the grid is read-only in the mentioned example. If the ReadOnly property is set to false, the Details tab will be editable.

GridViewImageColumn displays read-only images for database columns of image data (OLE container or BLOB). If you have a byte[] as a value, please refer to the GridView >> Rows >> Row Details example and the GetImageFromBytes method which demonstrates how to obtain a valid value for the image column.

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Holger
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Holger
Top achievements
Rank 1
Share this question
or