fiogf49gjkf0d We have a datagrid and a hidden textbox on a tab of which the later is populated with the current OpportunityID, and has an OnChange event that triggers the population of the datagrid based on the OpportunityID. We would like to automatically select the first row of the datagrid after population, but we are unable thus far. First off, the datagrid's sortable property is currently set to false. Some of threads here lead me to believe that this property should be set to true to accomplish this. If that is the case, are there any negative implications to making that change? Below is our first attempt, but we are not certain if we can reference the ID value of the row, or if a key value from within the row data needs to be referenced.
If grdProducts.Recordset.RecordCount > 0 Then grdProducts.Selection.Clear grdProducts.Selection.Add(1)
End If
|