Search code examples
gridcursordevexpress

Why not editable cell has a cursor?


I have a grid, I have set:

this.gridColAlias1.AppearanceHeader.Options.UseTextOptions = true;
this.gridColAlias1.AppearanceHeader.TextOptions.HAlignment =DevExpress.Utils.HorzAlignment.Near;
this.gridColAlias1.OptionsColumn.AllowEdit = false;

I see the column on my grid is not editable, but anyway I see a cursor on the cell of that column and hence it pretends editable. Why this happens and how could I get rid of the cursor? Thanks!


Solution

  • What do you mean when you talk about the cursor? There is no cursor (caret) within the cell when the OptionsColumn.AllowEdit property is set to false. Maybe you mean a focus rectangle?
    To avoid the focus rectangle to be drawn on the particular column cell, you can make this column unfocusable via the OptionsColumn.AllowFocus property.