Hello Friends!
I need your help, I have a strnge error.....
private void cbDesMensalidade_SelectedValueChanged(object sender, EventArgs e)
{
if (cbDesMensalidade.SelectedIndex != -1)
{
this.tbValorDesc.Text = (nc.getValorAluno(tbRefCadastro.Text) - (nc.getValorAluno(this.tbRefCadastro.Text) * ((Convert.ToInt32(cbDesMensalidade.SelectedValue)) / 100))).ToString();
}
}
The error is "Unable to cast object of type 'RH_2013.DAL.CombAdd' to type 'System.IConvertible'."
Please Help

Akhil GargRank #772 · 3K reputationPosted May 4, 2015, 2:38 AM EDT
Sousa Pambo92 reputationPosted May 4, 2015, 3:37 AM EDT
Akhil GargRank #772 · 3K reputationPosted May 4, 2015, 1:43 PM EDT
https://msdn.microsoft.com/en-us/library/system.invalidcastexception%28v=vs.110%29.aspx