dabbiX
asked on
How to use " TdrawGrid " for data.......in Delphi
How to use " TdrawGrid " for data.
Like strings . In Delphi
Like strings . In Delphi
Sorry for the typos. Its
Rect: TRect
Rect: TRect
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok Tanks
I got 5 tims in the left side.
but how can I put it in cell .
like row 3 and colum 4. ' my text'
I got 5 tims in the left side.
but how can I put it in cell .
like row 3 and colum 4. ' my text'
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok
DrawGrid1.Col := 3;
DrawGrid1.Row := 0;
lx := DrawGrid1.row ;
dy := DrawGrid1.Col ;
DrawGrid1.Canvas.TextOut(l x,dy,'colu m name');
This set name in colum 0......
How can I put name in colum 1 to 4.........
DrawGrid1.Col := 3;
DrawGrid1.Row := 0;
lx := DrawGrid1.row ;
dy := DrawGrid1.Col ;
DrawGrid1.Canvas.TextOut(l
This set name in colum 0......
How can I put name in colum 1 to 4.........
Is this what you mean:
var
col,row:integer;
begin
for col := 0 to DrawGrid1.ColCount-1 do
for row:= 0 to DrawGrid1.RowCount-1 do
DrawGrid1.Canvas.TextOut(DrawGrid1.CellRect(col,row).Left+3,DrawGrid1.CellRect(col,row).Top+3,'colum name');
//...
ASKER
ok
ups
I got 'Colum name' over all.
How can I have separate name in Colum heat.
like... Colum1 = name
Colum 2 = Home
Colum 3 = Country
ups
I got 'Colum name' over all.
How can I have separate name in Colum heat.
like... Colum1 = name
Colum 2 = Home
Colum 3 = Country
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Tform1.drawgrid1drawcell(s
begin
DrawGrid1.Canvas.TextOut(R
end;