Hot to get clicked cell column in DevExpress XtraGrid

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

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). app

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

 

--------------spa

TreeList 選中變色orm

 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 followingip

 

TreeList1.Appearance.SelectedRow.BackColor = Color.BlueVioletget

TreeList1.Appearance.FocusedRow.BackColor = Color.BlueVioletit

What am I missing?io

 

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.event

-----------

相關文章
相關標籤/搜索