DataGridViewTextCell accept Enter key to wrap

0
0

I am currently using the latest version. In a brand new demo test, I tried to set cell input to wrap according to the previous feature. But it seems that the AcceptsReturn property is not taking effect.

code show as below:

        private void DataGridView1_DataSourceChanged(object sender, System.EventArgs e)
        {
            foreach (var col in dataGridView1.Columns)
            {
                if (col is Wisej.Web.DataGridViewTextBoxColumn txtColumn)
                {
                    txtColumn.AcceptsTab = true;
                    txtColumn.AcceptsReturn = true;
                    txtColumn.Multiline = true;
                }
            }
        }

After the configuration is completed, the text of the new line can be displayed, but when the cell is edited, pressing the Enter key does not generate a new text line in the cell.

  • You must to post comments
0
0

Hi dev

Thanks for write us

There are an issue detected and fixed for this topic
Now is in testing and will be available in our next release

thanks for write us

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.