I was able to use ParentRow but cannot remove
var rows = rowItem.GridViewDataControl.ChildrenOfType<GridViewRow>();
I need to get collection of rows in grdview the first set all rows to no selected and then set one row which I want to selected
. I also removed border selection code and changed as below. Performance improved little bit.
Can you please tell me how I can get rows collection in gridview and iterate throw them. If wanted I can even pass collection of rowitems to my method then iterate through them. I will be waiting for your reply
public static void ShowDropEffect(GridViewRowItem row, bool show)
row.IsSelected = show == true ? true : false;