In silverlight app, I have a datagrid with image as first column (please see the code below that I am using)
when I click on the image I am capturing MouseLeftButtonDown event, the problem I am running under is that while clicking on the image the SelectedIndex in the Datagrid is not changing Hence I don't know which row was clicked.
<data:DataGridTemplateColumn Width="25">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Image Width="20" Stretch="Fill" Name="Delete" Source="/Portal;Component/Images/Delete.png" MouseLeftButtonDown="ImageDelete_MouseLeftButtonDown"/>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
</data:DataGridTemplateColumn>