I have a standard Windows Forms DataGrid and wish to display 300 characters
of text in a DataGridTextBox. I have made the data grid table style rows deep
enough so that all the text has space to display. I have added the following
code to
the constructor for the form which contains the data grid:-
((DataGridTextBox)dgActPurpose.TextBox).WordWrap = true;
((DataGridTextBox)dgActPurpose.TextBox).Multiline = true;
((DataGridTextBox)dgActPurpose.TextBox).ScrollBars = ScrollBars.Vertical;
but this only has an effect when the cell has focus.
I would like to have all the text visible all of the time, not just when the
cell has focus. The DataGrid is set with ReadOnly = true.
Have I missed something, or what is the way to achieve this please?
--
John Carrick Smith
============
--
John Carrick Smith
============