Hi again
Maby I explain my problem bad.
I have several dbgrids in my form, I want to use one button to print some of them.
I check the activeControl like this:
if (ActiveControl is TDBGrid) then
DBGridPrint(*The name of the active DBgrid*,'Search result');
procedure...
Hi
i have a procedure to print dbgrids call it like this:
//-------------------------------------
DBGridPrint(DBGSearch,'Search result');
procedure TForm1.DBGridPrint(DBGrid: TDBGrid; Title: string);
How can i use this procedure for any dbgrid in my form?
I´ve try this...
Hi and thanks
I solved it like this:
in my database while loop I put this line of code:
-------------------
if new teamgroup blablba then
UpdateGrid(StringGrid2.RowCount + 1);
-------------------
procedure TframAdmSetupSchedule_2.UpdateGrid(rowCount: integer);
begin
//Update rowcount...
Hi
Is there a way to insert a new row before another in StringGrid1DrawCell??
I loop out posts from a database and whant to add a new row to group the posts like:
Team 1 // this is a new added row
employee1
employee2
employee3
Team 3 // this is a new added row
employee4
employee5
...
Thanks...
Thanks Andrew
Is it possible to fill a rect induvidual depending on a value in the cell (collected from database)? say a cell value is 15 and the widht of the cell is 20, I would like to fill that cell 75% whit green color. I´m trying to create a schedule that displays employees working hours...
Hi
How do I fill a column rect depending of a value of a variable?
if variable := 6 then fill column(6)
I am trying to make a schedule with a stringgrid where the stringgrid looping out employees with different work times.
The columns I have in the stringgrid is: name, and time columns from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.