Hi guys ,
what i am trying to do is when i select a row in datagrid i see the selected row in a text box,now when i try to edit that row in text box that row in the datagrid gets unselected.how can i keep that row selected.

Thanks

Best guest is that you are updating the row in the textbox TextChanged event and this causes the datagrid to refresh and loose its row selection.

Post some code so we can see what you are doing when you select the row and what you do on the textbox TextChanged event.