i am making a windows form application that contains a datagridview that is filled with employees names
the program is for the attendance absence holidays of employees in the company
so i created a combobox column in the datagridview beside the holiday checkbox so when the dataentry check the holiday checkbox he can choose what type of holiday is this to subtract it from the employee holiday counter
i need to fill this combobox column with values returned from a database, i returned those values within a dataset but i need to know how to bind this dataset to the combobox
in normal combobox i used
so how i can bind this DataSet to the combobox column in the datagrid, is there a way like what i did with normal comboboxes .. and if i want to set the value of this combobox column manually depending on something else how could i add a value manually?
in normal comboboxes i write
so how to do that too in the combobox column within the datagridview
thx a lot for ur time reading this .. really appreciate it :)
the program is for the attendance absence holidays of employees in the company
so i created a combobox column in the datagridview beside the holiday checkbox so when the dataentry check the holiday checkbox he can choose what type of holiday is this to subtract it from the employee holiday counter
i need to fill this combobox column with values returned from a database, i returned those values within a dataset but i need to know how to bind this dataset to the combobox
in normal combobox i used
Code:
combobox1.datasource = DS.table[0]; combobox1.displaymember = "Employees_name"; //for example
in normal comboboxes i write
Code:
combobox1.text = "Casual";
thx a lot for ur time reading this .. really appreciate it :)
Comment