PositionChange Or SelectionChange event

I have a dataviewgrid (master) and below the details in another datagridview (childrecords).

When I navigate through the mastergrid I want of cource to synchronize the childs.

This moment I do this with PositionChange event.

But is is a good solution to use the SelectionChange event of the dgv instead of the positionchageevent

reason when I requery the table I use in mastergrid in another form (I use businessobjects) then the positionchage event is also firing. So I have turn of the pos-event.

When I use just simple the sleectionchangeevent (or another better event of dgv) I think the control over the grid is better.

thanks




Answer this question

PositionChange Or SelectionChange event

  • Christian Morel

    Well i use the SelectionChange event and it works great, but do not forget to change the selection mode to fullRowSelect so you will be able to retrieve the selectedRow

    Plus use binding source to bind the right row to child data grid view

    Itzik


  • PositionChange Or SelectionChange event