In My database there are few columns as
Deptid (int, null),
From the front end..I am displaying a combobox where the Display member is DeptName and ValueMember is DeptID.Combobox intial value is --Select--
So when user doesn't select any item from the combobox I want to insert/update database columns with null value.
I tried to do it by converting the selectedvalue to int and when the user doesn't select an item.It throws an error as it is null.
So how to insert null.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)