Problem with Grid's indicator during changing IndexFieldName

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
k&k
Posts: 4
Joined: Mon 07 Jun 2010 13:30

Problem with Grid's indicator during changing IndexFieldName

Post by k&k » Fri 02 Dec 2011 07:26

I have a simple table with one column called Number, with numbers from 1 to 100. I set primary key on this column. In application I set local index and open query:

Code: Select all

  MSQuery1.IndexFieldNames := 'Number';
  MSQuery1.Active := True;
In DBGrid everything is OK, indicataor is in first row. Now I set local index again:

Code: Select all

  MSQuery1.IndexFieldNames := 'Number';
DBGrid's indicator jump down as many rows as are visible in DBGrid. I run an application again, and before the second setting local index, I move DBGrid's cursor one row down and one row up, and now set local index. In this case everything is OK, indicator doesn't jump.
Version Info: SDAC 6.1.3, RAD Studio XE Version 15.0.3953.35171, SQL Server 2008 R2 10.50.1600.1.

Can you check this problem.
Regards
k&k

AndreyZ

Post by AndreyZ » Mon 05 Dec 2011 09:24

Hello,

Thank you for the information. We have fixed this problem. This fix will be included in the next SDAC build.

Post Reply