EditForm in RadGridView for WinForms

4 posts, 0 answers
  1. Holger
    Holger avatar
    5 posts
    Member since:
    Jan 2015

    Posted 18 Mar Link to this post

        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.

  2. Dess
    Admin
    Dess avatar
    1607 posts

    Posted 18 Mar Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Holger
    Holger avatar
    5 posts
    Member since:
    Jan 2015

    Posted 18 Mar in reply to Dess Link to this post

    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 ?

     

  5. Dess
    Admin
    Dess avatar
    1607 posts

    Posted 21 Mar Link to this post

    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.
Back to Top