Eden Posted June 29, 2016 Posted June 29, 2016 My VCL code: DBGrid1.SelectedField := ClientDataSetSaleID; Could TUniDBGrid to do it? How to? Quote
Sherzod Posted June 29, 2016 Posted June 29, 2016 Hi, Try: procedure TMainForm.UniButton1Click(Sender: TObject); var DBGridJSName: string; FieldIndx: Integer; begin DBGridJSName := UniDBGrid1.JSName; FieldIndx := 2; UniSession.AddJS(DBGridJSName + '.getSelectionModel().select({row: '+ DBGridJSName +'.uniRow, column: '+ IntToStr(FieldIndx) +'});'); end; Best regards 1 Quote
Eden Posted June 30, 2016 Author Posted June 30, 2016 Great! Thanks your answer!! Thank you! Hi, Try: procedure TMainForm.UniButton1Click(Sender: TObject); var DBGridJSName: string; FieldIndx: Integer; begin DBGridJSName := UniDBGrid1.JSName; FieldIndx := 2; UniSession.AddJS(DBGridJSName + '.getSelectionModel().select({row: '+ DBGridJSName +'.uniRow, column: '+ IntToStr(FieldIndx) +'});'); end; Best regards Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.