Hot to get clicked cell column in DevExpress XtraGrid

To accomplish this task, use the GridView.RowCellClick event.

Please note that this event will not fire when clicking on a row cell, if data editing is enabled and the ColumnViewOptionsBehavior.EditorShowMode property is set to MouseDown (and to Default, if multiple row selection is disabled).

To accomplish this task, set the GridView.OptionsBehavior.EditorShowMode property to the EditorShowMode.MouseUp value.

--------------

TreeList 选中变色

 cannot change the focused/selected row background colors. It is white default. I can only see a dashed frame around the row to understand that it is selected. I've tried following

TreeList1.Appearance.SelectedRow.BackColor = Color.BlueViolet

TreeList1.Appearance.FocusedRow.BackColor = Color.BlueViolet

What am I missing?

Do you have only one column in TreeList? If so, you do not see the focused row color because it is overridden by the FocusedCel appearance. To solve the issue, disable the TreeList.OptionsSelection.EnableAppearanceFocusedCell option.

-----------

原文地址:https://www.cnblogs.com/xiangniu/p/3349777.html