Eden Posted June 29, 2016 Share Posted June 29, 2016 My VCL code: DBGrid1.SelectedField := ClientDataSetSaleID; Could TUniDBGrid to do it? How to? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 29, 2016 Share 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 Link to comment Share on other sites More sharing options...
Eden Posted June 30, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
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.