Is there a way to set the RightToLeft property independently for each column
in a datagridview?
What I want to do is have a datagridview with two columns. The left hand
column (column 0) is used to type a Hebrew word. The right hand column
(column 1) is used to type an English word.
I have tried usind the CellEnter event. On that event, I figure out which
column has been entered, and I set the currentinputlanguage to be English or
Hebrew, as appropriate. That works.
Also, if the user entered the Hebrew column, I tried setting the RightToLeft
property of the datagridview to RightToLeft.yes, and if he entered the
English column set the property to RightToLeft.No. That part doesn't work so
well. The RightToLeft part works, but it changes the order of the columns,
making it very difficult to enter data.
What I want is for the columns to remain in the same order, but type
righttoleft in one column, and lefttoright in the other column.
(Note: This is an extremely similar problem to two others made recently,
but I have made some changes to the code since then, and this version of the
question is a bit more succinct. I'm hoping that leads to someone
understanding, and answering, the question.)
, and changing the RightToLeft property for the control. That almost works,
except that the position of the columns changes