This question is locked. New answers and comments are not allowed.
My first column in the grid is an action column with 3 posibilities.
Each posibility is a different image.
When a user clicks on the cell I need to change the value of the image in the cell.
I tried this but it did not work:
When I set the value of the cell it has no effect.
Any ideas?
Each posibility is a different image.
When a user clicks on the cell I need to change the value of the image in the cell.
I tried this but it did not work:
| void dgMainT_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
| { |
| string colText = string.Empty; |
| if (dgMainT.CurrentCell.Column != null) |
| { |
| colText = dgMainT.CurrentCell.Column.Header.ToString(); |
| } |
| if (colText == "Action") |
| { |
| //change the icon |
| GridViewCell cell = dgMainT.CurrentCell; |
| cell.Value = "Images/ArrowDown.png"; |
| } |
| } |
When I set the value of the cell it has no effect.
Any ideas?