View Issue Details

IDProjectCategoryView StatusLast Update
0017468LazarusLCLpublic2011-11-29 16:56
ReporterDavid NoriegaAssigned ToJesus Reyes 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.29 (SVN)Product Build 
Target Version0.9.30Fixed in Version0.9.29 (SVN) 
Summary0017468: assigning SelectedField fails if the field is the firs column in a DBGrid
DescriptionTrying to set the SelectedField to the first field of the dataset in a DBGrid fails, nothing happens.
Additional InformationTrying to debug I discovered that in DBGrids.pas line 875 in procedure TCustomDBGrid.SetCurrentField there is:

if i>FirstGridColumn then

If I comment out that line, the bug disappears. Not sure if that conditional is needed, or needs to be changed to >= instead of >
TagsNo tags attached.
Fixed in Revision27437
LazTarget0.9.30
WidgetsetWin32/Win64
Attached Files

Activities

2010-09-22 20:49

 

selectedfieldbug.zip (128,216 bytes)

Jesus Reyes

2010-09-22 21:29

developer   ~0041278

thanks, fixed.

Issue History

Date Modified Username Field Change
2010-09-22 20:49 David Noriega New Issue
2010-09-22 20:49 David Noriega File Added: selectedfieldbug.zip
2010-09-22 20:49 David Noriega Widgetset => Win32/Win64
2010-09-22 20:59 Jesus Reyes Status new => assigned
2010-09-22 20:59 Jesus Reyes Assigned To => Jesus Reyes
2010-09-22 21:29 Jesus Reyes Fixed in Revision => 27437
2010-09-22 21:29 Jesus Reyes LazTarget => 0.9.30
2010-09-22 21:29 Jesus Reyes Status assigned => resolved
2010-09-22 21:29 Jesus Reyes Fixed in Version => 0.9.29 (SVN)
2010-09-22 21:29 Jesus Reyes Resolution open => fixed
2010-09-22 21:29 Jesus Reyes Note Added: 0041278
2010-09-22 21:29 Jesus Reyes Target Version => 0.9.30
2011-11-29 16:56 David Noriega Status resolved => closed