I have a datagridview that has cells with text values that have "True" for one column and the next column should have a Combobox with two values to choose from (in and out)... I want to change the cell type to be a check box and cell type to Combobox... if the cell text is "true" the checkbox must be checked and if it is false or there is nothing in it, it must be unchecked if text from the direction column is in the Combobox value must be set to IN and have an extra option of out in it ... this DATA comes from a loaded XML file, this is how I load the XML file to the datagridview
public void Load(DataGridView dgv)
{
dgv.Refresh();
XmlReaderxmlFile = XmlReader.Create(@"path/DGVXML.xml",newXmlReaderSettings());
DataSet dataSet = new DataSet();
dataSet.ReadXml(xmlFile);
dgv.DataSource = dataSet.Tables[0];
xmlFile.Close();
}
the datagridview must display as follows
OnRowDataBound
to get the cell value and insert a CheckBox – artm