I know this is a pretty old post, but many times I found the answers to the old post as useful as pointing me to a solution, so I will send my solution anyway.
I did this by handling the EditingControlShowing event in a datagridview. One thing that cast me off when resolving this issue was that I was trying to look up the RightToLeft property in a datagridviewcell, however this is the Textbox property instead.
private void MyDataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
TextBox currentCell = e.Control as TextBox;
if (currentCell != null
&& myDataGridView.CurrentCell.ColumnIndex == NameOfYourColumn.Index)
{
currentCell.RightToLeft = RightToLeft.Yes;
}
}
source
share