PDA

View Full Version : checkbox inside a datagridview ( C#)



Duh
10-21-2012, 11:36 AM
Hi guys, does someone have an idea on how to insert a checkbox inside a datagridview ( one checkbox per row).
I would then pick up the values ( after checking the desired checkboxes after a click event buttton) of the selected row(s), insert it/them into a DB, etc.

I think I can do the aforementioned but not the create a checkbox. Must be some way around even with the toolbox which I am missing.

EDIT:
the mentioned app just does the following :
//From a given textbox ( in my case I enter a URL with .xml extension), it just reads an xml
myDataSet.ReadXml(textBox1.Text);
//the created dg ( datagrid) is now populated with values.
myDataGridView.DataSource = myDataSet.Tables[0].DefaultView;

Any suggestions would be thanked.

PS: may I use this (same content of post) to ask somewhere else on the meantime?

Duh
10-21-2012, 04:20 PM
achieved. Was quite easy ( the checkbox part)

kromosto
11-04-2012, 04:13 AM
nice too see someone posting here :) nearly deserted.