

MyView.SetRowCellValue(index, "B", newValue) īut I don't think the "B" referred to the column correctly and I got a run time error with a null reference exception. The SelectedDataObject property returns an. Use the SelectedRowHandle property to obtain or set a row currently selected in the grid. Int index = myView.GetDataSourceRowIndex(e.RowHandle) As you can see in the documentation, you can bind the property SelectedRowHandle to recover the selected row: When an end-user taps a data row in the grid, this row becomes selected. 1 Answer Sorted by: 0 By looking at the documentation directly you can find your answer: It seems you need to set the SelectedRowHandle property to change the selected row. String newValue = e.CellValue.ToString() I tried this: private void myView_CustomRowCellEdit_1(object sender, .CustomRowCellEditEventArgs e) So the end result is below where B1 is the value that is user entered and C1 is calculated based on the value in B1. After they make the change, I want row 1, column C to be twice what B is. Let's say the user edits row 1, column B to be 25. 2 minutes to read In This Article Features Getting Started Note Microsoft will end Xamarin-related support services on and shift development focus to the. I tried using the event CustomRowCellEdit, but it threw an error whenever I added that event I wasn't sure how to change the value of another cell anyway. You can also use the DataGridView.RowTapCommand property to define an action to be performed when a user taps the grid’s row. If a user taps a row that is not selected, the DataGridView.SelectionChanged event is also raised. I want the user to edit one of the columns and, after the edit is made, for the grid to update the value of another column. The event parameter’s RowHandle property allows you to obtain the processed row.
