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