artem_niko Posted August 27, 2021 Share Posted August 27, 2021 Hello! How I can hide some columns in UniStringGrid? For example, 0,3 ... if in my UniStringGrid four columns (0,1,2,3). Standard property not exists. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 1 hour ago, Артем said: How I can hide some columns in UniStringGrid? Hello, Do you want it in runtime? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted August 27, 2021 Author Share Posted August 27, 2021 Just now, Sherzod said: Hello, Do you want it in runtime? No, not in Runtime. In design time Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 2 minutes ago, Артем said: In design time First trick, you can set the width to 0. Quote Link to comment Share on other sites More sharing options...
artem_niko Posted August 27, 2021 Author Share Posted August 27, 2021 Just now, Sherzod said: First trick, you can set the width to 0. So...Yes, maybe this is one of once way) I think that this can make in code. Last question: How get values from row where setting cursor? As it do in UniDBGrid, when we scroll rows or select mouse row Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 4 minutes ago, Артем said: Last question: How get values from row where setting cursor? As it do in UniDBGrid, when we scroll rows or select mouse row OnSelectCell event? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted August 27, 2021 Author Share Posted August 27, 2021 Just now, Sherzod said: OnSelectCell event? Yes, here Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 1 minute ago, Артем said: Yes, here Is this a continuation of the question, or did you get an answer? Quote Link to comment Share on other sites More sharing options...
artem_niko Posted August 27, 2021 Author Share Posted August 27, 2021 Just now, Sherzod said: Is this a continuation of the question, or did you get an answer? This is question from me 🙂 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 6 minutes ago, Артем said: This is question from me 🙂 procedure TMainForm.UniStringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin UniPanel1.Caption := (Sender as TUniStringGrid).Cells[ACol, ARow] end; Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 27, 2021 Share Posted August 27, 2021 12 minutes ago, Sherzod said: procedure TMainForm.UniStringGrid1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean); begin UniPanel1.Caption := (Sender as TUniStringGrid).Cells[ACol, ARow] end; Hello, is it possible to get selected cell on clientSide ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 9 minutes ago, irigsoft said: is it possible to get selected cell on clientSide ? Hello, Do you have fixed columns? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 27, 2021 Share Posted August 27, 2021 1 minute ago, Sherzod said: Hello, Do you have fixed columns? only on top (Captions) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 1 minute ago, irigsoft said: only on top (Captions) Okay. 13 minutes ago, irigsoft said: is it possible to get selected cell on clientSide ? You can try this event: function cellModel.select(sender, record, row, column, eOpts) { alert(record.data[column], column, row); } Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 27, 2021 Share Posted August 27, 2021 1 minute ago, Sherzod said: Okay. You can try this event: function cellModel.select(sender, record, row, column, eOpts) { alert(record.data[column], column, row); } thank you, I will try it. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 27, 2021 Share Posted August 27, 2021 1 minute ago, irigsoft said: I will try it. function cellModel.select(sender, record, row, column, eOpts) { alert("Data: " + record.data[column] + ", column: " + column + ", row: " + row) } 1 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.