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.
change row color in datgrid, when store data?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: change row color in datgrid, when store data?
Hi.
Perhaps check out page 165 in the DG user guide.
Craig Newman
Perhaps check out page 165 in the DG user guide.
Craig Newman
Re: change row color in datgrid, when store data?
And where do I find that?
Re: change row color in datgrid, when store data?
Bad memory?tusa wrote:And where do I find that?

http://forums.livecode.com/viewtopic.ph ... 21#p145821
Re: change row color in datgrid, when store data?
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?
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?
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
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