Loading image into Datagridview cell on Cell Click Event

Flie

New member
Joined
Mar 29, 2012
Messages
1
Programming Experience
Beginner
Hello,


I have built a datagridview linked to a mysql data base, in which I have 6 columns.

The first column is a task (performed by a subject) that I want to evaluate (all the tasks are loaded from the database)

The other 5 columns represent the grades that he can obtain on each task (1,2,3,4,5).

Problem:
I want to be able to click a cell and load an image (an X e.g.) to indicate that a task was performed with a corresponding grade. How can I do this?

Thank you for your help.
 
Load an image from where? To where? Is some data to be saved somewhere to indicate this change and persist it for future sessions? Please provide all the relevant information. If you don't things like that then that's relevant so tell us. We don't know what you do and don't know and your question is very vague. All we can say for sure is that you need to handle the CellClick event of the grid, but I would hope that you'd know that much already from reading the documentation for the DataGridView.
 
Back
Top