How to scroll the detail window when a master record is selected.

Hi. I have 2 grids, master and detail. The detail has about 20 columns, the master about 5. If the detail grid is displaying its columns towards the end, and I click on the master grid, I''d like the detail to scroll back to the first column. How can I do this? Thank you.

1 Reply

AD Administrator Syncfusion Team September 14, 2005 08:26 AM UTC

Hi Helmut, For this problem, write the following snippet in the click event of the Master grid. private void Mastergrid_Click(object sender, System.EventArgs e) { this.detailsgrid.CurrentCell.MoveTo(1,1,GridSetCurrentCellOptions.ScrollInView); } masterchild_34615.zip Regards, Leo.

Loader.
Up arrow icon