"Input string was not in a correct format."
this function loads with the Form
Expand|Select|Wrap|Line Numbers
- private void DGVWCcode_Changed()
- {
- SalaryDClassesDataContext dc = new SalaryDClassesDataContext();
- BindingSource bs = new BindingSource();
- var wcmpnnts = from c in dc.Wage_Components
- where c.EmployerID == int.Parse(tbEmplyrId.Text)
- select new
- {
- ComponentCode = c.cmpnntCode,
- ComponentDiscrition= c.cmnntDscrpt,
- };
- DGVWCcodes.DataMember = null;
- bs.DataSource= wcmpnnts;/****here I get the exception***/
- DGVWCcodes.DataSource = bs;
- }
if not can you tell me what the problem is?