Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > DataGridView detecting change in combo box cell
 

DataGridView detecting change in combo box cell

Hi,

I have a DVG with a combo box in one cell. I need to detect when the user changes the cell value, and if the previous value was a specific value, I need to prompt them to ensure they really want to change from this value. How can I accomplish this task?

jerry

jerrykur  Tuesday, April 10, 2007 4:20 PM
Never mind. I got this to work. I added a flag that got set in the NewRow event telling me if the currentrow was in the special state. Then in the change event I could check the flag and prompt if required.
jerrykur  Tuesday, April 10, 2007 5:16 PM
Never mind. I got this to work. I added a flag that got set in the NewRow event telling me if the currentrow was in the special state. Then in the change event I could check the flag and prompt if required.
jerrykur  Tuesday, April 10, 2007 5:16 PM

You can use google to search for other answers

Custom Search

More Threads

• Read a database from one form and update from another?
• Can't DataBind Combobox (System.Data.DataRowView)
• Win Forms DataGrid Header and Text Alignment?
• How to display data before update
• Check the checkbox in a datagridview
• DataSet serialization
• Extending Properties On A Datagridview Column to work in the designer
• Dynamic columns binding to DataGridView - all rows show the same data
• Dataset Changes Using Two Forms Linked to One Dataset
• reading null values