When you activate the “Multi Select” feature and select the mode “CellSelect”. When columns have specials editors, like checks, the user must perform 3 clicks in a cell to get the editor activated. Grid does not have same behavior when multi select is false or when mode is “RowSelect”; in this two cases user can activate editor with just one click.
You can see this in Demo Center / XtraGrid Suit / XtraGrid Main Demo / Layout Features Group / Cell Selection sample. The column “Country” has a combo box editor and works the same way.
Is there a way to avoid this behavior when “cellselect” so user could activate check editor with one click. Note that if you use keyboard, arrows to move between cells and space, you can change a check state right away.
Thanks
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Matías,
Please refer to the Activating a button control in multiselect mode issue that discusses the similar problem and let us know if it's what you need.
Thank you,
Paul
Thanks Paul,
I’ve been looking http://www.devexpress.com/issue=Q96719 as you said.
I wonder, inside PerformClick method, what method should I invoke for RepositoryItemCheckEdit instead of “RaiseButtonClick” for RepositoryItemButtonEdit?
Thanks again
Hello Matías,
The code for CheckEdit is:
private void gridView1_MouseDown(object sender, MouseEventArgs e) { if ((Control.ModifierKeys & Keys.Control) != Keys.Control) { GridView view = sender as GridView; GridHitInfo hi = view.CalcHitInfo(e.Location); if (hi.InRowCell) { if (hi.Column.RealColumnEdit.GetType() == typeof(RepositoryItemCheckEdit)) { view.FocusedRowHandle = hi.RowHandle; view.FocusedColumn = hi.Column; view.ShowEditor(); CheckEdit edit = (view.ActiveEditor as CheckEdit); edit.Toggle(); (e as DevExpress.Utils.DXMouseEventArgs).Handled = true; } } } }
Thank you,
Paul