Does it possible to get cell index where column header = “column4” and row contains “232”
for example i uploaded screen shot does it possible to get red cell index and than make it color red? and if wpf datagrid have that function does wpf toolkit data grid has? columns and rows are adding from code behind
Does it possible to get cell index where column header = column4 and row
Share
You should be doing this through
Style/TriggerorBindingwith a converter likeBy default, the
DataGridis using virtualization so only theDataGridRowsthat are visible to the user at the moment will be loaded. The other rows will be created once they become visible so if you’re trying to style some cells in code behind in can become pretty messy (the cell you are trying to access might not even exist yet.)To get a
DataGridCellat index row/column you can define a helper class (DataGridHelper) and use it like thisDataGridHelper