Home > database >  How to highlight the selected rows in the data window?
How to highlight the selected rows in the data window?

Time:09-27

Please help me, such as title, I want to use the
Int row
The row=dw_1getrow ()
Dw_1. Selectrow (0, false)
Dw_1. Selectrow (row, true) and then is to display the results of the first line,
Then I want to use:
Int row
The row=dw_1. Currentrow ()
Dw_1. Selectrow (0, false)
Dw_1. Selectrow (row, true)
Then show there are grammar mistakes, please help me,

CodePudding user response:

Currentrow () this function is datawindow expression function, is not can be used on the outside of the datawindow,
Can only be used in the inside of the datawindow expressions,
So prompt syntax error of course!!!!!!!!!!

CodePudding user response:

When do you want to click the datawindow highlight the chosen line??
That you can in the datawindow clicked () event like this:
If the row=0 then return
Enclosing selectrow (0, false)
Enclosing selectrow (row, true)

Row is clicked () event of a parameter, don't have to define and use directly,

CodePudding user response:

refer to the second floor wei1583812 response:
do you want to click the datawindow highlight the chosen line??
That you can in the datawindow clicked () event like this:
If the row=0 then return
Enclosing selectrow (0, false)
Enclosing selectrow (row, true)

Row is clicked () event of a parameter, need not defined, direct use,


This is the highlight of the system effect (blue white letters), you can also use other ways, such as

Text colr attribute expressions to write an if (getrow ()=currentrow (), RGB (255255255), the RGB (0, 0))
The background color attribute expressions to write an if (getrow ()=currentrow (), RGB (64,0,128), RGB (255255255)))

CodePudding user response:

Practice to the first floor,,,,

Top,

CodePudding user response:

reference newease reply: 3/f
refer to the second floor wei1583812 response:
When do you want to click the datawindow highlight the chosen line??
That you can in the datawindow clicked () event like this:
If the row=0 then return
Enclosing selectrow (0, false)
Enclosing selectrow (row, true)

Row is clicked () event of a parameter, need not defined, direct use,
.


You can refer to,

CodePudding user response:

Text colr attribute expressions to write an if (getrow ()=currentrow (), RGB (255255255), the RGB (0, 0))
The background color attribute expressions to write an if (getrow ()=currentrow (), RGB (64,0,128), RGB (255255255)))

Don't understand, how the properties of the written expression,

CodePudding user response:

# 2 top

CodePudding user response:

In the rowfocuschanged events it is ok to write the following statement:

If currentrow & gt; 0 then
SelectRow (0, False)
SelectRow (currentrow, True)
Scrolltorow (currentrow)
end if

CodePudding user response:

In the rowfocuschanged events it is ok to write the following statement:

If currentrow & gt; 0 then
SelectRow (0, False)
SelectRow (currentrow, True)
Scrolltorow (currentrow)
end if

CodePudding user response:

In the rowfocuschanging events it is ok to write the following statement:

If newrow & gt; 0 then
SelectRow (0, False)
SelectRow (newrow, True)
end if

CodePudding user response:

reference newease reply: 3/f
refer to the second floor wei1583812 response:
When do you want to click the datawindow highlight the chosen line??
That you can in the datawindow clicked () event like this:
If the row=0 then return
Enclosing selectrow (0, false)
Enclosing selectrow (row, true)

Row is clicked () event of a parameter, need not defined, direct use,
.

I use it, don't write in the event code

CodePudding user response:

reference newease reply: 3/f
refer to the second floor wei1583812 response:
When do you want to click the datawindow highlight the chosen line??
That you can in the datawindow clicked () event like this:
If the row=0 then return
Enclosing selectrow (0, false)
Enclosing selectrow (row, true)

Row is clicked () event of a parameter, need not defined, direct use,

.


up

CodePudding user response:

11 references netzgj response:
reference 3 floor newease reply:

Refer to the second floor wei1583812 response:
When do you want to click the datawindow highlight the chosen line??
That you can in the datawindow clicked () event like this:
If the row=0 then return
Enclosing selectrow (0, false)
Enclosing selectrow (row, true)

The row is clicked (...


More than if you use the keyboard up and down keys move when the choice, and this choice is no highlighting, line, this can only rely on the mouse to click on

Please use this method:
In the rowfocuschanging events it is ok to write the following statement:

If newrow & gt; 0 then
SelectRow (0, False)
SelectRow (newrow, True)
end if

CodePudding user response:

In the rowfocuschanged events it is ok to write the following statement:

If currentrow & gt; 0 then
SelectRow (0, False)
SelectRow (currentrow, True)
end if

CodePudding user response:

refer to the second floor wei1583812 response:
do you want to click the datawindow highlight the chosen line??
That you can in the datawindow clicked () event like this:
If the row=0 then return
Enclosing selectrow (0, false)
Enclosing selectrow (row, true)

Row is clicked () event of a parameter, need not defined, direct use,


Support ~ ~

CodePudding user response:

This show (dw_1).
PB novice communication group of 61604460
  • Related