You've already forked lazarus-ccr
RxFPC:RxDBGrid - fix draw last collumn with OnDrawColumnCell event defined - ID0030781
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5292 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3741,10 +3741,13 @@ var
|
|||||||
S: string;
|
S: string;
|
||||||
F: TField;
|
F: TField;
|
||||||
C: TRxColumn;
|
C: TRxColumn;
|
||||||
j: integer;
|
j, DataCol: integer;
|
||||||
begin
|
begin
|
||||||
if Assigned(OnDrawColumnCell) and not (CsDesigning in ComponentState) then
|
if Assigned(OnDrawColumnCell) and not (CsDesigning in ComponentState) then
|
||||||
OnDrawColumnCell(Self, aRect, aCol, TColumn(ColumnFromGridColumn(aCol)), aState)
|
begin
|
||||||
|
DataCol := ColumnIndexFromGridColumn(aCol);
|
||||||
|
OnDrawColumnCell(Self, aRect, {aCol}DataCol, TColumn(ColumnFromGridColumn(aCol)), aState)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
F := GetFieldFromGridColumn(aCol);
|
F := GetFieldFromGridColumn(aCol);
|
||||||
|
Reference in New Issue
Block a user