How to activate different hints for each cell in a grid?



How to activate different hints for each cell in a grid?..

Answer / Sandeep Bisht

To set different hints for each cell in a TGrid component in Delphi, you can override the OnGetTextHint event and access the GridCellInfo object to get the specific row and column of the current cell. Here's an example:nn```delphinprocedure TForm1.Grid1GetTextHint(Sender: TObject; AColIndex, ARowIndex: Integer; var Hint: string; var Rect: TRect): Boolean;nbeginn // Set different hints for each cell based on row and column indicesnend;n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

How to Resize StringGrid Columns ?

1 Answers  


How to Convert a number from one base to another?

1 Answers  


When I try to execute sql query from delphi7 it throws the following exception ORA-01704: string literal too long. I know the reason why its throwing this exception. My problem is.... I have catched this exception throw Try.... Except block.....In except block i am performing rollback..... due to above error its also throwing exception in rollback transaction...........due to rollback exception...........it had created some problem in connection...........every time when i try to open or close a connection it throws an exception " Operation is not allowed when the object is open"

1 Answers  


Write a program to show the memory leak?

1 Answers  


'Interface mismatch. Engine version different' . what does this error indicates?

1 Answers  


How to Generate a Windows Console Application?

1 Answers   Satyam,


How to Use the WinApi GetObject to get a bitmap?

1 Answers  


How to Copy files using the Standard Windows Copy file dialog box ?

0 Answers  


How to Set default value for decimal places in the BDE?

1 Answers  


How to eject a CD-ROM in code?

1 Answers  


How to Use the LzExpand functions in your applications?

1 Answers  


What is the message "Generating font matrix" when starting Kylix?

1 Answers  


Categories