Gabriel Fabrega Posted August 25, 2015 Share Posted August 25, 2015 Hello!Need to change the color of selected row in UniDBGrid .What property CustomCss should be changed ?Best regards Link to comment Share on other sites More sharing options...
Sherzod Posted August 25, 2015 Share Posted August 25, 2015 Hi, Try: .x-grid-row-selected .x-grid-cell-inner { font-weight: bold; background-color:green; } Best regards. Link to comment Share on other sites More sharing options...
Gabriel Fabrega Posted August 25, 2015 Author Share Posted August 25, 2015 it worked! thanks a lot! Link to comment Share on other sites More sharing options...
rencarnacion Posted September 4, 2015 Share Posted September 4, 2015 Can you show how to use it please ? Link to comment Share on other sites More sharing options...
Sherzod Posted September 4, 2015 Share Posted September 4, 2015 Hi, UniServerModule -> CustomCSS .. Best regards. 1 Link to comment Share on other sites More sharing options...
Ulugbek Posted February 7, 2016 Share Posted February 7, 2016 How change row color in Unidbgrid like if fieild values =1 then color red else yellow Link to comment Share on other sites More sharing options...
Sistema Fenix Posted February 18, 2016 Share Posted February 18, 2016 Hi Ulugbek In DrawColumnCell event of the unidbgrid add: if values = 1 then Attribs.Font.Color := clRed else Attribs.Font.Color := clYellow; Link to comment Share on other sites More sharing options...
herculanojs Posted March 23, 2016 Share Posted March 23, 2016 if values = 1 thenAttribs.Font.Color := clRedelseAttribs.Font.Color := clYellow; Apenas pinta a célula, quero pintar toda a linha. Como faço? Link to comment Share on other sites More sharing options...
Sherzod Posted March 23, 2016 Share Posted March 23, 2016 if values = 1 then Attribs.Font.Color := clRed else Attribs.Font.Color := clYellow; Apenas pinta a célula, quero pintar toda a linha. Como faço? Hi, UniDBGrid1 -> OnDrawColumnCell procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol, ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs); begin if Column.Field.DataSet.FieldByName('FieldName').AsString = 'Value' then begin Attribs.Color := clGreen end; end; Best regards. Link to comment Share on other sites More sharing options...
mmurgas Posted March 24, 2016 Share Posted March 24, 2016 Thanks!! Link to comment Share on other sites More sharing options...
Beginner Posted May 4, 2016 Share Posted May 4, 2016 How about change color in summary true or total group?cell color = clgrey font color = clWhite 1 Link to comment Share on other sites More sharing options...
SoftNil Posted October 16, 2018 Share Posted October 16, 2018 Quem quiser zebrar UniDBGrid use esse código no onDrawColumnCell do if Odd((Sender as TUniDBGrid).DataSource.DataSet.RecNo) then Attribs.Color:= clWhite else Attribs.Color:= $00F1F2F3; // leve cinza 1 Link to comment Share on other sites More sharing options...
baha Posted June 14, 2019 Share Posted June 14, 2019 Спасибо тебе Шерзод, от души тебе!!! Link to comment Share on other sites More sharing options...
delphixpart Posted January 17, 2020 Share Posted January 17, 2020 Dear All, Greetings! Appreciate help on how to use [.x-grid-row-selected], I have tried in CustomCSS in serverModule but no luck. What am I missing? Thanks in Advance Link to comment Share on other sites More sharing options...
55143681 Posted January 21, 2020 Share Posted January 21, 2020 On 1/18/2020 at 7:39 AM, delphixpart said: Dear All, Greetings! Appreciate help on how to use [.x-grid-row-selected], I have tried in CustomCSS in serverModule but no luck. What am I missing? Thanks in Advance On 8/26/2015 at 12:56 AM, Sherzod said: Hi, Try: .x-grid-row-selected .x-grid-cell-inner { font-weight: bold; background-color:green; } Best regards. Does not work too. unigui1514+xe10.3.3 1 Link to comment Share on other sites More sharing options...
mehmet07 Posted January 31, 2020 Share Posted January 31, 2020 unigui 1.90.0.1518 not work too. How we can solve this problem? Link to comment Share on other sites More sharing options...
Kast2k Posted April 14, 2020 Share Posted April 14, 2020 On 1/31/2020 at 4:25 PM, mehmet07 said: unigui 1.90.0.1518 not work too. How we can solve this problem? .DBG .x-grid-item-selected .x-grid-cell { font-weight: bold!important; background-color:blue!important; } Link to comment Share on other sites More sharing options...
mehmet07 Posted April 15, 2020 Share Posted April 15, 2020 thanks Kast2k Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now