Gabriel Fabrega 0 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 Quote Link to post Share on other sites
Sherzod 1138 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. Quote Link to post Share on other sites
Gabriel Fabrega 0 Posted August 25, 2015 Author Share Posted August 25, 2015 it worked! thanks a lot! Quote Link to post Share on other sites
rencarnacion 70 Posted September 4, 2015 Share Posted September 4, 2015 Can you show how to use it please ? Quote Link to post Share on other sites
Sherzod 1138 Posted September 4, 2015 Share Posted September 4, 2015 Hi, UniServerModule -> CustomCSS .. Best regards. 1 Quote Link to post Share on other sites
Ulugbek 1 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 Quote Link to post Share on other sites
Sistema Fenix 48 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; Quote Link to post Share on other sites
herculanojs 24 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? Quote Link to post Share on other sites
Sherzod 1138 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. Quote Link to post Share on other sites
mmurgas 7 Posted March 24, 2016 Share Posted March 24, 2016 Thanks!! Quote Link to post Share on other sites
Beginner 5 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 Quote Link to post Share on other sites
SoftNil 1 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 Quote Link to post Share on other sites
baha 0 Posted June 14, 2019 Share Posted June 14, 2019 Спасибо тебе Шерзод, от души тебе!!! Quote Link to post Share on other sites
delphixpart 0 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 Quote Link to post Share on other sites
55143681 16 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 Quote Link to post Share on other sites
mehmet07 15 Posted January 31, 2020 Share Posted January 31, 2020 unigui 1.90.0.1518 not work too. How we can solve this problem? Quote Link to post Share on other sites
Kast2k 1 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; } Quote Link to post Share on other sites
mehmet07 15 Posted April 15, 2020 Share Posted April 15, 2020 thanks Kast2k Quote Link to post Share on other sites
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.