Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi How can i change backcolor of gridcontrol(gridview devekspres)


example;

dim r=10
datagridview1.rows(r).DefaultCellStyle.backcolor=color.red

(datagridview codes not working with gridcontrol(gridview devekspres)

What I have tried:

i used
GridView2.Appearance.FocusedRow.BackColor = Color.Red

but its colored only focused row
Posted
Updated 16-Aug-21 4:43am
v3
Comments
Richard MacCutchan 16-Aug-21 8:10am    
So what happens?
Member 14588284 16-Aug-21 9:57am    
datargrid codes was example theese codes not work with devekspres gridvew
so
i want change backcolor of gridvew row

i used this code but its change only focused row
" GridView2.Appearance.FocusedRow.BackColor = Color.Red"



Richard MacCutchan 16-Aug-21 10:10am    
Yes, because you specifically told it to change the colour of the focused row. Take a look at some of these suggestions: devexpress datagridview row color - Google Search[^].
Member 14588284 16-Aug-21 10:43am    
of course i did it
but i think you dont read my question?
because i dont ask datagridview i asked for gridcontrol (devekspres gridview)
Richard MacCutchan 16-Aug-21 11:31am    
Then you should check the documentation for the control you want to work with.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900