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.
foreach
(GridViewDataColumn item
in
radGridView1.Columns)
{
if
(item
is
GridViewTextBoxColumn)
((GridViewTextBoxColumn)item).AcceptsReturn =
true
;
((GridViewTextBoxColumn)item).Multiline =
}