I'm displaying multiple translations of different languages (some of them being right-to-left languages) in a single grid. So I need to set right-to-left mode for a single grid cell but not for the whole grid.
I tried to use this code to achieve this behavior:
C#private void Grid_RowCellStyle(object sender, RowCellStyleEventArgs e)
{
if (translationColumns.Contains(e.Column))
{
var row = grid.GetRow(e.RowHandle) as TranslatableEntity;
if (row?.Locale != null)
{
e.Appearance.TextOptions.RightToLeft = row.Locale.GetCultureInfo().TextInfo.IsRightToLeft;
}
}
}
This sets Appearance.TextOptions.RightToLeft for all cells that contain right-to-left content but the setting has no effect at all.
Additionally setting "RightToLeft=true" on the whole grid does not affect the behavior of tooltips. They are still in left-to-right mode.