Hello,
I have a WinGrid in one form that needs to select only the cell that I click on, not all the row related to that cell. I haven't been able to achieve that, so I'll ask for help: is this possible? How?
I think it should be something that controls that in the OverrideLayout of the grid, but I can't find it. Something like CellSelectionType = Row/Column/Cell or something like that.
Thanks in advance!
Perfect, that's what I wanted. Thanks!
It sounds to me that, in addition to setting the ActiveAppearance and the Appearance on the cell, you also need to set the SelectedAppearance.BackColor on the same cell, so that the cell always looks the same regardless of whether it is normal, active, or selected.
Not really. Let me post an example, so I can be more clear.
This is an example of the grid:
As you can see, there are white cells and colored cells. This has been achieved dissablig the active appearances and putting these colors as images, and putting the SelectedRowAppearance to SandyBrown. The blue square is an image of a blue square inserted in a cell. My goal is to achieve this without putting images in the cells. I can set the active appearance of a cell the same backcolor as the cell appearance, and it works great when I select a single cell or row. But when I try to select multiple cells, like the example, it doesn't show the active appearance backcolors, it puts all cells to SandyBrown. Is it possible to do something like this using Backcolors and not images?
Thanks again.
Hello Xe,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Hi Xe,
Thank you for the reply.
The grid allows you to set the cell color for the whole grid: .DisplayLayout.Override.CellAppearance
on the band level: .DisplayLayout.Bands[BandIndex].Override.CellAppearance
on individual rows: .Rows[RowIndex].CellAppearance
on individual columns: .DisplayLayout.Bands[BandIndex].Columns[ColumnKeyOrIndex].CellAppearance
or on individual cells: .Rows[RowIndex].Cells[].CellAppearance
So if disabling the active appearance is not an appropriate solution in your case, you can use either of these option based on your custom needs.
Please let me know if you have any additional questions.