How to get selected cell text on MouseDoubleClick event

Jun 23, 2009 at 8:55 AM


Does anybody know how to get cell text out from a DataGridCellInfo instance?

Below is my code...

      private void OnMouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
            DataGrid dataGrid = (DataGrid)sender;

            IList<DataGridCellInfo> dataGridCellInfos = dataGrid.SelectedCells;

           // How to get cell text out from the DataGridCellInfo?