|
13.12.2007, 07:55 | #1 |
Участник
|
grid question
How can I detect the value of the grid item when the user click on a row? For example, I have a grid where the datasource is the SalesLine table. Id' like to get the Linenum when the user clicks on a row. Can someone help?
Thanks! |
|
13.12.2007, 10:26 | #2 |
Участник
|
The method active is called on the datasource each time you select a row in the grid.
You can override this method and just use the SalesLine.LineNum field from the table. SalesLine will, at this point, contain the selected row |
|
13.12.2007, 21:32 | #3 |
Участник
|
Thank you for your reply. When click on a different record, it always return line 1.
public int active() { int ret; ret = super(); element.design().caption(int2str(salesLine.LineNum)); return ret; } Thanks! |
|