I want to ask you a question about my project.
I have a DataGridView
in my C# project which has two columns: One is DataGridViewTextBoxColumn
, the other is DataGridViewComboBoxColumn
.
I have usernames and authorities columns in my DB. Usernames are email addresses like abc@domain.com and authorities are either user or admin.
I want to bind via DataTable
usernames to DataGridViewTextBoxColumn
and authorities to DataGridViewComboBoxColumn
but combo boxes must show usernames' authority by default and also have the option to change it between user and admin.
Thanks for any help.