Problem with TVirtualTable and Filter
Posted: Mon 31 May 2010 19:05
I have a problem when I use Filter on dataset and I editing line. This is an exemple to understand.
This is my dataset Structure
PK : ftInteger
NUM : ftInteger
DES : ftString, 20
SEL : ftInteger
I have 10 lines in dataset
PK NUM DES SEL
0 1 DES_1 0
1 2 DES_2 0
2 3 DES_3 0
3 4 DES_4 0
4 5 DES_5 0
5 6 DES_6 0
6 7 DES_7 0
7 8 DES_8 0
8 9 DES_9 0
9 10 DES_10 0
This is a situation to reproduce the bug
I have filter for this line number (0, 2, 4, 6, 8, 10)
I modify SEL field on the second line (Line number 2) to 1
I click on a button to change filter condition for this line number (1, 3, 5, 7, 9) (Juste change Filtered to False and True)
When I change filter for this line number (0, 2, 4, 6, 8, 10), the dataset line number 4 changed to line number 2 with field SEL value equal to 1, and the field SEL in line number 2 equal to 0 (Never changed)
I can create a little application to show the problem if you want.
Sorry for my english
This is my dataset Structure
PK : ftInteger
NUM : ftInteger
DES : ftString, 20
SEL : ftInteger
I have 10 lines in dataset
PK NUM DES SEL
0 1 DES_1 0
1 2 DES_2 0
2 3 DES_3 0
3 4 DES_4 0
4 5 DES_5 0
5 6 DES_6 0
6 7 DES_7 0
7 8 DES_8 0
8 9 DES_9 0
9 10 DES_10 0
This is a situation to reproduce the bug
I have filter for this line number (0, 2, 4, 6, 8, 10)
I modify SEL field on the second line (Line number 2) to 1
I click on a button to change filter condition for this line number (1, 3, 5, 7, 9) (Juste change Filtered to False and True)
When I change filter for this line number (0, 2, 4, 6, 8, 10), the dataset line number 4 changed to line number 2 with field SEL value equal to 1, and the field SEL in line number 2 equal to 0 (Never changed)
I can create a little application to show the problem if you want.
Sorry for my english