Page 1 of 1
change row color in datgrid, when store data?
Posted: Mon Aug 29, 2016 12:31 pm
by tusa
Hello.
Is it possible, and how, to set the color of a row, when I store data in my datagrid?
It is not alle rows, wich should change, only the row I submit data in.
Best regards Tue.
Re: change row color in datgrid, when store data?
Posted: Mon Aug 29, 2016 3:03 pm
by dunbarx
Hi.
Perhaps check out page 165 in the DG user guide.
Craig Newman
Re: change row color in datgrid, when store data?
Posted: Mon Aug 29, 2016 5:36 pm
by tusa
And where do I find that?
Re: change row color in datgrid, when store data?
Posted: Mon Aug 29, 2016 5:54 pm
by Klaus
Re: change row color in datgrid, when store data?
Posted: Tue Aug 30, 2016 6:04 am
by tusa
But that's when you highlight a row in the datagrid?
What I want is to fill some data in some text fields, when I push button, the data goes into the datagrid, and when I fill in these data by clicking the button, then i should change the color of that row, not the text.
Doews that make sense?
Re: change row color in datgrid, when store data?
Posted: Tue Aug 30, 2016 2:10 pm
by dunbarx
Hi.
I am not sure if there is a native way to colorize a row in a DG. Maybe Trevor knows
But the fields in such a gadget are all named according to the extent of the DG itself. So the fields in row 2, say, are named:
"col 1 0002"
"col 2 0002"
"col 3 0002"
etc.
So you can always set the backColor of those fields to whatever you wish. Note that a DG has the "opaque" property of those fields set to "false" on creation, so you will want to set them to "true".
You can write a general handler to do this to any row (or column) you want, and that would be a fun little project.
Craig