I have defined a combobox named “kbaskani” in datagridview. I need to select only one person with yes option in the marked column. At the same time, I don't want to send an empty data. How can I warn both empty data warning and multiple selection except for one selection?

Tahir AnsariPosted Jul 27, 2023, 10:08 AM
Hi Mehmet try this one
Mehmet FatihPosted Jul 27, 2023, 1:30 PM
Tahir, the problem is this. if I don't clik the kbaskani column, It is not giving an error and saving without warning that Yes option hasn't been choosen. How can we assign it to click button event?
Tahir AnsariPosted Jul 27, 2023, 10:37 AM
Hello you need to debug and caught the error and fix. Not every answer is always accurate.
You said data is saving, try to fix by debugging
Mehmet FatihPosted Jul 27, 2023, 10:19 AM
I have tried it. Bit it saving without any warning.
Mehmet FatihPosted Jul 27, 2023, 10:05 AM
datagridview combobox form validation
I added two options "Yes" and "No" to DataGridViewComboBoxColumn named kbaskani in windows form. It has no connection to the database. The initial value is set to “No”. The thing I want to do:
Mehmet FatihPosted Jul 25, 2023, 12:39 PM
I have got this error Tahir.