Hi,
In My database there are few columns as
Empid(Pk,int,not null)
Deptid (int, null),
DeptName(varchar(50),null),
Location(varchar(50),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.