I am trying to left align the text in the column chooser. When I walk through it debugging, I can see the value successfully get updated but the content is still middle aligned when shown. What is the correct way to left align the text in column chooser?
This is what I am currently doing, the positioning portion works correctly but not the content alignment.
private
void
ConfigureOrderGrid()
{
orders_radGridView.ColumnChooser.Shown += (o, args) => orders_radGridView.ColumnChooser.SetPosition();
}
public
static
void
SetPosition(
this
GridViewColumnChooser chooser)
{
var gridPoint = chooser.GridRootElement.PointToScreen(
new
Point(0));
var x = gridPoint.X + chooser.GridRootElement.Size.Width;
chooser.DesktopLocation =
new
Point(x, gridPoint.Y);
chooser.StartPosition = FormStartPosition.Manual;
chooser.ColumnChooserControl.ColumnChooserElement.TextAlignment = ContentAlignment.MiddleLeft;
}