Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
0
Get cell value in ActiveCellChanged event
posted

How can I read the the data from a clicked row?

I have a DataGrid with an ActiveCellChanged event and a reference DataGridRef, but I can't find a way to read the data (text) from the clicked row in the ActiveCellChanged event.

  • 29105
    Verified Answer
    Offline posted

    Hello Victor, 

    The ACC event exposes a New/OldActiveCell event arg properties as long as your event provides the GridActiveCellChanged parameter. 

    eg. 

     private void OnActiveCellChanged(GridActiveCellChangedEventArgs e)
        {
            var columnName = e.NewActiveCell.ColumnUniqueKey;
            var rowID = e.NewActiveCell.RowIndex;
        }
    cell-activation.zip