I was wondering if it was possible to select individual cells rather than entire rows when clicking on a cell. I would ideally like the selected cell to be tracked by my program (ie if the active data is being updated in a certain cell, I'd like that cell to be highlighted.
I know that I can affect the appearance of a given cell via code. For instance, if I want to change the cell in row 2, in the "Accepted" column to red, I can use the following code:
Me.VoltageGrid.Rows(2).Cells("Accepted").Appearance.ForeColor = Color.Red
However, I'd like to be able to select that cell programmatically AS I change the color, for instance. So, I guess I have two questions, really:
1) Is there a way to change the features of the grid so that clicking on a cell will select the cell rather than the entire row?
2) Is it possible to select a given cell programmatically, similarly to the way I changed the color of a given call shown above?
Thanks!
Hello,
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.
Hello,
In order to change cell click action you should set CellClikAction to CellSelect, for more information please review following links:
http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.UltraGridOverride~CellClickAction.html
http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.CellClickAction.html
In order to select cell programmatically you should add this cell to the Selected.Cells collection of UltraGrid, for more information please review following links:
http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.Selected_members.html
http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.Selected~Cells.html
Please let me know if you have any further questions.