Add SpinEditor into radgridview column

6 posts, 0 answers
  1. miki
    miki avatar
    37 posts
    Member since:
    Dec 2014

    Posted 30 Dec 2014 Link to this post

    I saw this: http://www.telerik.com/help/winforms/gridview-editors-customizing-editor-behavior.html
    So i can see it is possible, how can do that ?

    Thanks

  2. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 30 Dec 2014 Link to this post

    Hi Miki,

    Thank you for writing.

    You can just use GridViewDecimalColumn, which default editor is a spin editor. More information is available here: http://www.telerik.com/help/winforms/gridview-columns-gridviewdecimalcolumn.html.

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. miki
    miki avatar
    37 posts
    Member since:
    Dec 2014

    Posted 30 Dec 2014 Link to this post

    Thanks you for quick answer.
    Currently i try this:

    GridViewDecimalColumn decimalColumn = new GridViewDecimalColumn();
    decimalColumn.Name = "DecimalColumn";
    decimalColumn.HeaderText = "Speed";
    decimalColumn.FieldName = "UnitPrice";
    decimalColumn.DecimalPlaces = 30;
    radGridView1.MasterTemplate.Columns.Add(decimalColumn);
    radGridView1.Rows.Add(10);

    the result was column with header Speed and value of 10, i didn't see the SpinEditor control.
  4. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 30 Dec 2014 Link to this post

    When you double click a cell, it will open its editor, which will be the spin editor you are looking for. More on the editors in RadGridView is available here: http://www.telerik.com/help/winforms/gridview-editors.html.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. miki
    miki avatar
    37 posts
    Member since:
    Dec 2014

    Posted 30 Dec 2014 in reply to Stefan Link to this post

    Attach...
  6. miki
    miki avatar
    37 posts
    Member since:
    Dec 2014

    Posted 30 Dec 2014 in reply to miki Link to this post

    Thanks !
Back to Top