How to force the XtraGrid to auto-select cell contentsArticle ID: A277 ; Product Group: .NET ; Product: XtraGrid ; Version(s): 6.x ; Modified On: 6 Nov 2006 DescriptionHow do I force the grid to automatically select (highlight) all text in a cell when activated?SolutionBy default, the OptionsBehavior.AutoSelectAllInEditor option is activated and it makes the grid select text when a cell is opened for editing. However, when a cell is activated via a mouse click (vs. the Enter or F2 key), the click is redirected to the in-place editor and resets text selection. This behavior can be changed via the OptionsBehavior.EditorShowMode property. For example, please set it to MouseUp or Click.
比如:
this.gridView1.Appearance.FocusedCell.BackColor=Color.Red;