Proportion: change the id to 310 the number of rows field in red
Change the id to 307 line are all red
Because of what to write! Thanks to the warrior to give directions
CodePudding user response:
If there is a column a, so a new pseudo column a_color long used to populate to change color, can be different in each row,The background of a column written expression for the if (a_color & gt; A_color 0, the default color)
Each column is a new pseudo columns,
Every change a_color is greater than 0 a certain color, can change the color in the column,
CodePudding user response:
How do you write code. WarriorCodePudding user response:
1. New N columns, if there is a column a, then a new pseudo column a_color long used to populate to change color, can be different in each row,2. Modify each need to set the background color of the column, such as a column, background expression to write for the if (a_color & gt; A_color 0, the default color)
3. Need to modify the background color of a certain line column, dw_1. SetItem (row, 'a' + '_color', you need to set the color of the)
CodePudding user response:
Some column (see color change a line:http://bbs.csdn.net/topics/392031902
Ls_exp="~" 0 ~ t the if ((id=310), "+ string (ll_red) +", 0) "+" - ", "
//he field color change
Long al_color_cur//red
Long al_color_bak//black
Long I
Long ii
String col_name
String col_visible
Ii=long (dw_1. The describe (" DataWindow. Column. The Count "))
For I=1 to 2
Col_name=dw_1. The describe (" # "+ string (I) +". The Name ")
Col_visible=dw_1. The describe (col_name +. "Visible")
If col_visible="1" then//if all visual field is not judging
Dw_1. Modify (col_name + ". Color=~ 0 ~ t "if ((id=307)," + string (ll_red) + ", 0) "+" - "")
End the if
next