>Why is it the code below always gets the topmost row?
>
>OrderDetailForm oForm = new OrderDetailForm();
>oForm.orderID = this.oOrder.Entity.OrderID;
>oForm.ShowDialog();
>
>I noticed that though I moved the row in the datagridview in different row, it returns the same row. Am I missing something here?
Hiya Jess!
You can make use of the this.NavControl. Put the code below after the constructor method of the form:
InitializeComponent();
this.NavControl = this.grdOrders;
HTH
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."