In my Form, I have 20 or 30 Text Boxes and Combo Boxes. I am using a
tabbed interface. When the Form's Close button is clicked, I want to
check whether user attempted an entry in any of the Text Boxes or not.
If yes, a dialog box appears to ask whether user wants to Save the
entries or not.
There is also a data grid with one Code field that is a primary key.
Suppose, a user clicks on any row of the data grid, its column values
get filled in the above Text Boxes. If he changes any of the Text Box
values, then on Form Close when Save option is selected, the existing
record gets updated.
I don't want to use multiple flags and don't want multiple calls to
data-access layer. Any optimized way?