Hi All.This really should be obvious, but its not. I have a grid on a form and when i change rows, I want the text boxes and other form controls to stay synchronized. Here is the code:
// Synchronize the upper portion in the form when the user// clicks on a new row in the gridif (e.RowIndex > -1){
boNotes.SeekToPrimaryKey(
Convert.ToInt32(grdViewNoteLog.Rows[e.RowIndex].Cells["note_pk"].Value.ToString()));this.Refresh();}
The Notes BO is on the corrrect row, because if I click the edit button in the form, the controls all get updated with the correct values.
What do I need to do to handle this programmatically?
Thanks!