Subject | Jerry Sand's problem with TIB_CtrlGrid |
---|---|
Author | Jason Wharton |
Post date | 2004-08-18T22:32:46Z |
Here is the fix to the TIB_CtrlGrid when scrolling to Eof and getting weird
results.
Around line 600 in IB_CGrid.pas:
if DataLink.Dataset.Bof then
begin
NewPanelOffset := 0;
NewPanelIndex := 0;
NewPanelCount := DataLink.BufferCount + 1; // Bof row to be
shown.
end
else
if DataLink.Dataset.Eof then
begin
NewPanelCount := DataLink.BufferCount + 1; // Eof row to be
shown.
if NewPanelCount > RowCount * ColCount then
NewPanelCount := RowCount * ColCount;
I made it so that it will show the blank line for Bof and Eof instead of it
blanking out the first or last record with the Bof or Eof record.
PS. I'm working on the new installer for handling the next release.
Therefore, I'll be posting bug-fixes to the source here until it is done.
Regards,
Jason Wharton
results.
Around line 600 in IB_CGrid.pas:
if DataLink.Dataset.Bof then
begin
NewPanelOffset := 0;
NewPanelIndex := 0;
NewPanelCount := DataLink.BufferCount + 1; // Bof row to be
shown.
end
else
if DataLink.Dataset.Eof then
begin
NewPanelCount := DataLink.BufferCount + 1; // Eof row to be
shown.
if NewPanelCount > RowCount * ColCount then
NewPanelCount := RowCount * ColCount;
I made it so that it will show the blank line for Bof and Eof instead of it
blanking out the first or last record with the Bof or Eof record.
PS. I'm working on the new installer for handling the next release.
Therefore, I'll be posting bug-fixes to the source here until it is done.
Regards,
Jason Wharton