To accomplish this task, use the GridView.RowCellClickevent.

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 Choose color change

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

-----------

Hot to get clicked cell column in DevExpress XtraGrid More articles about

  1. DevExpress.XtraGrid

    DevExpress.XtraGrid Control use The control class is a table control , But it has many convenient and useful functions , For example, you can group records , You can add... To the front of the record checkbox, It is possible to set... With the same value cell Carry on the cooperation ...

  2. DevExpress.XtraGrid 【 turn 】

    http://www.cnblogs.com/zeroone/p/4574539.html DevExpress.XtraGrid Control use The control class is a table control , But it has many convenient and useful functions , for example ...

  3. DevExpress.XtraGrid.GridControl Implement customization tooltip

    DevExpress.XtraGrid.GridControl Control default tooltip The text value of each cell displayed , But in the actual work, there will be various needs . I have a column here that shows the discount rate and the value is 0-1 Two decimal places between ...

  4. DevExpress.XtraGrid winform Try sharing

    DevExpress.XtraGrid stay winform It's very troublesome to use it in the library , To reduce code duplication and code reuse , I aim at DevExpress.XtraGrid Encapsulates a Form Base class of , It covers DevExpress ...

  5. Realize in DevExpress.XtraGrid.GridControl To achieve the function of selecting all

    First, create a new one Win Form Test project , Drag one GridControl Control to the form . public partial class Form1 : Form { public Form1() { Initia ...

  6. DevExpress.XtraGrid.view.gridview Attribute specification

    This article excerpts from : http://www.cnblogs.com/-ShiL/archive/2012/06/08/ShiL201206081335.html ( One ) Double click to expand , Contraction list ExpandedChi ...

  7. DevExpress.XtraGrid.Views Sets the background color of the specified row .

    If you need to set the background color of the specified line , Please refer to the following example 1. event :CustomDrawCell 2. Example : private void gridView1_CustomDrawCell(object sender ...

  8. DevExpress.XtraGrid.Views.BandedGrid.BandedGridView

    It uses DevExpress.XtraGrid.Views.BandedGrid.BandedGridView class No corresponding control found in toolbox , Around , So let's create one gridcontrol , then gr ...

  9. DevExpress XtraGrid Data export import Excel

    // <summary> /// Export button /// </summary> /// <param name="sender"></param ...

Random recommendation

  1. JQuery in ajax Summary of the relevant methods

    Prerequisite In other words jquery Medium ajax Method , So the prerequisite is, of course, the introduction of jquery La . <script src="http://libs.baidu.com/jquery/1.9.0/j ...

  2. Use UICollectionView Realize the calendar check-in function

    summary stay App in , Calendar is usually used in combination with check-in function . It's a way to increase user activity , meanwhile , Check in data contains a wealth of extremely valuable information . Let's take a look at how App Calendar check-in function is realized in . design sketch ..... thinking ...

  3. Descriptive statistics - Batch statistic functions with scripts &amp; Write one step at a time

    Calculate various descriptive statistics function scripts (myDescriptStat.R) as follows : myDescriptStat <- function(x){ n <- length(x) # The number of sample data m &l ...

  4. Eclipse Next, import the external jar Bag 3 Ways of planting (zhuan)

    http://blog.csdn.net/mazhaojuan/article/details/21403717 ******************************************* ...

  5. vijosP1779 King's game

    subject :https://vijos.org/p/1779 Answer key : It suddenly occurred to me that I haven't written high precision divided by single precision yet , So I took this question to practice ... little does one think 1A 了 ... Code : #include<cstdio> ...

  6. Android Common open source projects

    Android The first open source project —— Personalized controls (View) piece    Include ListView.ActionBar.Menu.ViewPager.Gallery.GridView.ImageView.Progre ...

  7. [Swift]LeetCode124. The maximum path in a binary tree and | Binary Tree Maximum Path Sum

    Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any ...

  8. Delphi IdHTTP1 Download files to prevent feign death (

    stay Form1 Add control to : Two Indy Control :IdAntiFreeze1,IdHTTP1; A button :Button1; A progress bar :ProgressBar1 Show download speed procedure TForm1 ...

  9. python The way of learning day4

    The outline 1. Some common built-in functions callable() chr() & ord() Generate verification code randomly map() Global variables , local variable hash() & round() max() min() ...

  10. Image processing FPN correction

    1 FPN Introduction to noise FPN noise (Fixed Pattern Noise) Fixed mode noise for short , according to FPN The mechanism of noise formation , Divided into lines FPN And column FPN. That's ok FPN: In the implementation of accumulation based on analog domain TDI-CMOS In the image sensor ...