new line on enter in datagridview with C#

2 posts, 0 answers
  1. Johirul
    Johirul avatar
    1 posts
    Member since:
    Apr 2018

    Posted 10 Apr 2018 Link to this post

    Dear Concerns

      Please help for a issue of datagridview in c#. I want create new line by enter key in datagridview instead of else. I have seen several  of your solution and trying to correct. Problem is that datagridviewTextboxColumn do no accept AcceptReturn method. Please give a solution. I am sending the snapshot of my code. please see the attachment.  

  2. Dimitar
    Dimitar avatar
    2984 posts

    Posted 10 Apr 2018 Link to this post

    Hello Johirul,

    This is the Telerik forum and we do not support the Microsoft grid. This is possible with our grid and we have such property:
    foreach (GridViewDataColumn item in radGridView1.Columns)
        if (item is GridViewTextBoxColumn)
            ((GridViewTextBoxColumn)item).AcceptsReturn = true;
            ((GridViewTextBoxColumn)item).Multiline = true;

    I hope this will be useful. 

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top