Grid - Registered Users - Helpdesk
Select, Enable, Edit Rows
Thread Starter: Joseph Started: 9/2/2008 8:07 AM UTC
Replies: 1
Select, Enable, Edit Rows

Hi,

I was exploring different kinds of spreadsheet or grid controls available in delphi and I found profgrid a very useful tool in implementing those hard coded tasks. However I'm new to the control and I can't figure out how can I make things work.

I'm using profgrid to display data queried from a database and it works well, displays data and so on... But when I try to select the data from profgrid for editing, the data cannot be selected. I notice that the disabled fields, rows, columns etc are fields that queries data from the database other fields that do not query data are all enable and editable. I'm quite sure of that because all related rows, columns or fields changes color and became inaccessible whenever I query data. I managed to enable a specific cell using "profgrid1.cells[2,1].enabled;" the cell became enabled and allows me to remove the data or character on it using backspace or delete key but it doesn't allow me to input new text or number on it.

I need to enable the whole row not a specific cell, also I want the enabled row which queries data be editable or modifiable by the user. Lastly when modifying the data, the color of the disabled field must return to the normal color or "edit mode color" whenever the user clicks on a specific cell. Selected cell must be in focus and the blinking mouse cursor must appear.

Thanks a lot keep up the good work...
Re: Select, Enable, Edit Rows
??????????????????????????????