Search This Blog

Thursday, October 21, 2010

Get Row from Index in Silverlight DataGrid

Programmer Question

I am trying to implement reodering rows in a Silverlight DataGrid. For this I am extending the default DataGridDragDropTarget, and I need to override and implement the following method:



protected override DataGridRow ContainerFromIndex(DataGrid itemsControl, int index)
{

}


How can I get the DataGridRow from the DataGrid and the Index?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails