Ok Guys
I have a dbgrid on the form. what I want is to have a checkbox inside the grid for each row.
here's is scenerio of what I want
1) when app starts the dbgrid will fill itself with the results of a query. and the result does not contain any boolean field that i can use for check box.
2) I need to have a separat check box column, so each row has a check box associated to it
3) by default it will be unchecked, but when the user checks the box, the row should be selected, or somehow I should be notified that this specific row is selected.
4) and what I want to do at the end is call a stored procedure by passing in only the id's from the row that are checked.
Now How do I create a check box field in dbgrid and how i do know when a checkbox is checked.
its a little complicated. I am working on it but any help will be appreciated
thanks
I have a dbgrid on the form. what I want is to have a checkbox inside the grid for each row.
here's is scenerio of what I want
1) when app starts the dbgrid will fill itself with the results of a query. and the result does not contain any boolean field that i can use for check box.
2) I need to have a separat check box column, so each row has a check box associated to it
3) by default it will be unchecked, but when the user checks the box, the row should be selected, or somehow I should be notified that this specific row is selected.
4) and what I want to do at the end is call a stored procedure by passing in only the id's from the row that are checked.
Now How do I create a check box field in dbgrid and how i do know when a checkbox is checked.
its a little complicated. I am working on it but any help will be appreciated
thanks