Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Binding to DataRecord.DataItemIndex does not work
posted

Hi, I'm trying to bind to DataItemIndex inside CellValuePresenter's ControlTemplate that's inside XamDataGrid (complete project attached):

<ControlTemplate TargetType="igDP:CellValuePresenter">
    <Button Content="{Binding DataItemIndex}"
            Click="Button_Click" />
</ControlTemplate>

 

Unfortunately, if I delete a row, none of subsequent rows update their button's content even though DataItemIndex value changed and is visible in Button_Click handler.

If I bind to "Index" then everything works correctly. Is this a bug ?

XamDataGridBindToDataRecord.zip