I have a Windows form which has a tab control. Each tab has one data gridview. I would get either a combo box values (array of strings) or a text box value (single string) from the database. Based on the values I am creating either DataGridViewTextBoxColumn
or DataGridViewComboBoxColumn
dynamically and adding it to the datagridview.
Now I want to handle the events of all the DataGridViewTextBoxColumn
and DataGridViewComboBoxColumn
in the data gridview in each tab. I want to know how to handle this situation and any sample code would be appreciated.