Questions tagged [datagridcell]

Represents a cell of a DataGrid control.

Learn more about DataGridCell on MSDN.

126 questions
0
votes
1 answer

How to get cell template datacontext in WPF DataGrid SelectedCellsChanged?

I would like to update some fields in a cell datacontext model during the cell selection. WPF datagrid contains event SelectedCellsChanged but I cannot find any datacontext property. Is it possible to get cell datacontext from current event? private…
Ievgen
  • 4,261
  • 7
  • 75
  • 124
0
votes
0 answers

Custom Styles on Cells of Datagrid in WPF

I have WPF Datagrid which has 4 x 4 matrix like that | A B C D ------------ 1 | 6 8 9 0 2 | 3 5 8 3 3 | 7 4 3 7 4 | 2 1 5 8 We have 4 rows and 4 columns. Now I want to apply custom styles on datagrid cells. Currently I am able to apply styles…
Asad Naeem
  • 558
  • 8
  • 14
0
votes
3 answers

WPF DatagridCell Event Trigger

I want to take Event Trigger of Datagrid Cell. I mean to say I want to write something like this **** and then call function this from XAML: void Cell_MouseEnter(object sender, MouseEventArgs e) How would I do…
Dee Choksi
  • 125
  • 4
  • 15
-2
votes
1 answer

Request the value of a grid point of raster knowing its coordinates in R

I have a raster map (a digital elevation model) that i opened in R and I need to know the value (which is the altitude) of one specific grid point knowing its geographical coordinates. I've tried to use the extract() function but it seems not to…
-2
votes
2 answers

Empty the cell when it is disabled

I have a datagrid which uses Styles of DataGridCell type to disable some cells depending on value from another cell of same row. Below is the XAML for Style