How do we select the row when the user selects a cell or row? I am using the default template and only the cell is selected.
The FieldSettings has options for SelectCell, SelectRow, and EnterEditMode. Is it possible to do multiple options (Enter Edit Mode AND Select Row)?
Hello,
I am checking if this is still an issue for you.
If you require any further assistance please do not hesitate to ask.
Thank you for your feedback. I am not sure that everything on your side goes as expected. When the ‘CellClickAction’ is set to “SelectCell” both the cell and the record are marked(SelectCell.png). When it is set to “EnterEditModeIfAllowed” the cell is in edit mode and the record is marked(EnterEditModeIfAllowed)
If you need any further assistance on this matter, feel free to ask.
I had an issue similar issue. What happens is in EnterEditModeIfAllowed record selection isn't recognized just cell selection. If you change to EnterEditModeIfAllowed call the EditModeStarting Event and use the following code, this should do it:
void MyDataGrid_EditModeStarting(object sender, Infragistics.Windows.DataPresenter.Events.EditModeStartingEventArgs e) { e.Cell.Record.IsSelected = true; }
I set the EnterEditModeIfAllowed option but the row is not being visually selected. If the user selects on a cell, it should go to Cell Edit Mode (textbox) and the row should render as selected (using the BackgroundSelected brush). If I change the CellClickAction to SelectRecord, the row is selected as expected but the cell isn't. Is there a way to achieve both?
Thank you for your post. I have been looking into your question and I am not sure that I understand correctly your request. If the ‘CellClickAction’ property is set to ‘EnterEditModeIfAllowed’, the corresponding record is selected and the click cell is in edit mode. You are able to access the selected record and the selected cell by :
this.xamDataGird1.ActiveRecord and this.xamDataGrid.ActiveCell
If you need any further assistance on this matter, do not hesitate to ask.