G
Guest
I have a datagrid bound to a strongly typed dataset. The datagrid can be made
readonly by either setting its ReadOnly property to True or by setting the
dataset's DefaultView's AllowDelete, AllowEdit, and AllowNew properties to
False. But in either case the datagrid still accepts a delete keypress (i.e.
press the delete key on the keyboard) and while this doesn't actually delete
the record it does set the dataset's HasChanges property to True thereby
causing my code to incorrectly ask the user to save his changes. Can this
problem be fixed?
readonly by either setting its ReadOnly property to True or by setting the
dataset's DefaultView's AllowDelete, AllowEdit, and AllowNew properties to
False. But in either case the datagrid still accepts a delete keypress (i.e.
press the delete key on the keyboard) and while this doesn't actually delete
the record it does set the dataset's HasChanges property to True thereby
causing my code to incorrectly ask the user to save his changes. Can this
problem be fixed?