views:

50

answers:

0

I have a datagrid with a long content list and its first row is selected as default. I want the scrollbar of the datagrid to be scrolled to the bottom, when a new row is added. I thought I achieved this by a selectionChangedEventHandler and scrollIntoView(item) method, but I just realized that when I try to scroll down by hand-without changing the selected item- I can not go down, scroll always go up. How can I handle adding a new row to datagrid? Thanks in advance

--I read that onItemCreated event handler was a solution but I can not find it in the list of datagrid, in my wpf on .net 4 project.