How to get selected cell text on MouseDoubleClick event

Jun 23, 2009 at 7:55 AM

Hi,

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?      

      }

Thanks!