Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check boxes in grid control

Status
Not open for further replies.

MDA

Technical User
Jan 16, 2001
243
US
I have a datagrid control that is bound to one field in a database. Is there a way to add a checkbox in the column next to the data?

My goal is to pull up a list and have the user check which items they want to work with. Also, is there a way to add bmp? I need to have a small picture that shows "NEW" next to the data in the grid if it meets certain criteria?

Perhaps there is another control more suited to what I need? Any ideas?

Many thanks,

Mike
 
Dear MDA,
One way of doing this is to find the coordinates of the boxes when the box is clicked. I don't have the code with me right away so i can't attach it with this but giving u an idea as to how to go about it.
First put a check box control on the form on which the grid is. Then hide this control, since our objective is not to show this control. Now on a grid where u require it create an object of the control and place it.For this u will require to find the coordinates of the box where the control has to be put. Yes, I agree u have to do a lot of job for resizing forms to scrolling etc. But then a user-friendly softwares are always difficult to build.
I am sorry the company i work for does not permit to show the code i had written here. Or else ur job might be extremely easy.
Hope u can get the job done.
Sanjay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top