Sorry that I missed this when you posted this a month ago, Mohammed.
The correct way to handle this is to have an event on FormB that fires when you click on the DataGrid, and then have FormA subscribe to that event. FormA should have the responsiblity of refreshing it's own textboxes, not FormB.
~~Bonnie
>thanks for your response Einar
>
> But my problem is that FormB opens up from FormA and there is a datagrid on formB. What i want is that when i click on a particular row of Datagrid ,that values should be seen in the textboxes of FormA