I have a GridViewComboBoxColumn and while in edit mode I want the StretchVertically to be false so I use the following code:
this.radGridView1.CellBeginEdit += RadGridView1_CellBeginEdit;
private void RadGridView1_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
switch (e.Column.Name)
{
case "MyColumn":
RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
if (editor != null)
{
editor.EditorElement.StretchVertically = false;
editor.EditorElement.Alignment = ContentAlignment.TopLeft;
}
But the dropdownlisteditor is still vertically centered in the cell. Is there a way to have it TopLeft?