oh sorry if I did not make myself clearly. anyways, this is embedded in my first code:
i got everything ok, saving, deleting, updating etc. but when i pull records form the database and assign them to the DGV, i am getting that error.Code:'error in this line: 'System.FormatException: DataGridViewComboBoxCell value is not valid 'the intSpecialization variable is the value for the combo box column strRow = New String() {strID, strLName, strFName, strMI, intSpecialization, _ strContactNo, strAddress, strBIR, strPHIC}
my combobox column should handle the Specialization column which is an Integer type. The variable intSpecialization holds the value and I am getting the error "System.FormatException: DataGridViewComboBoxCell value is not valid" when it executes the line
intSpecialization has a valid value of integer when i debug it...Code:strRow = New String() {strID, strLName, strFName, strMI, intSpecialization, _ strContactNo, strAddress, strBIR, strPHIC} Grid.Rows.Add(strRow)
(Please tell me if it is not still clear.. my poor English...)




)

Reply With Quote