c# - WPF Datagrid Get Selected Cell Value -


i want value selected cell in datagrid , please tell how this. used selectedcell changed event , how can that?

datagrid1.currentcell 

please refer datagrid class page on msdn. page:

selection

by default, entire row selected when user clicks cell in datagrid, , user can select multiple rows. can set selectionmode property specify whether user can select cells, full rows, or both. set selectionunit property specify whether multiple rows or cells can selected, or single rows or cells.

you can information cells selected selectedcells property. can information cells selection has changed in selectedcellschangedeventargs of selectedcellschanged event. call selectallcells or unselectallcells methods programmatically select or unselect cells. more information, see default keyboard , mouse behavior in datagrid control.

i have added links relevant properties you, i'm out of time now, hope can follow links solution.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -