Hello,
In my wpf application i've a feature of drag and drop of grid view rows and i need to add an image to one cell in the row dragged.
To do this, i create the image object dynamically with this code:
And i add the image to the cell i want:
The image is added to the cell of the dragged row but also added to some other rows in the gridview.
Do you know the cause of this behavior?
Thanks.
In my wpf application i've a feature of drag and drop of grid view rows and i need to add an image to one cell in the row dragged.
To do this, i create the image object dynamically with this code:
var cellImage = new Image() { Width = 20, Height = 20 };
var imageUri = "../AppResources/Images/flag.png";
cellImage.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(imageUri, UriKind.Relative));
And i add the image to the cell i want:
this.jobsGridView.CurrentCell.ParentRow.Cells[2].Content = cellImage;
The image is added to the cell of the dragged row but also added to some other rows in the gridview.
Do you know the cause of this behavior?
Thanks.