Gabriel Fabrega Posted August 25, 2015 Posted August 25, 2015 Hello!Need to change the color of selected row in UniDBGrid .What property CustomCss should be changed ?Best regards Quote
Sherzod Posted August 25, 2015 Posted August 25, 2015 Hi, Try: .x-grid-row-selected .x-grid-cell-inner { font-weight: bold; background-color:green; } Best regards. Quote
rencarnacion Posted September 4, 2015 Posted September 4, 2015 Can you show how to use it please ? Quote
Sherzod Posted September 4, 2015 Posted September 4, 2015 Hi, UniServerModule -> CustomCSS .. Best regards. 1 Quote
Ulugbek Posted February 7, 2016 Posted February 7, 2016 How change row color in Unidbgrid like if fieild values =1 then color red else yellow Quote
Sistema Fenix Posted February 18, 2016 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
herculanojs Posted March 23, 2016 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
Sherzod Posted March 23, 2016 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
Beginner Posted May 4, 2016 Posted May 4, 2016 How about change color in summary true or total group?cell color = clgrey font color = clWhite 1 Quote
SoftNil Posted October 16, 2018 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
delphixpart Posted January 17, 2020 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
55143681 Posted January 21, 2020 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
mehmet07 Posted January 31, 2020 Posted January 31, 2020 unigui 1.90.0.1518 not work too. How we can solve this problem? Quote
Kast2k Posted April 14, 2020 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
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.