G
Guest
I have a datagrid control that allows the user to enter new values. The
datagrid is bound to a predefined dataset. If the user enters a value that is
already in the datagrid the following system generated message is displayed:
Error when committing the row to the original data store
-----------------------------------------------------------------
Column <column name> is constrained to be unique. Value <whatever> is
already present. Do you want to correct the value?
--------------------------------------------------
Yes No
I want to have a custom event handler such that if a duplicate value is
found to already exist that rather than display the above message the
addition is automatically aborted and the row where the existing value
resides is selected.
It seems from searching the forums that this should be something that can be
done with the CurrencyManager but I cannot seem to find an example of how to
use the CurrencyManager in VB.Net.
If there is a better way other than the CurrencyManager please let me know.
Any help much appreciated!
datagrid is bound to a predefined dataset. If the user enters a value that is
already in the datagrid the following system generated message is displayed:
Error when committing the row to the original data store
-----------------------------------------------------------------
Column <column name> is constrained to be unique. Value <whatever> is
already present. Do you want to correct the value?
--------------------------------------------------
Yes No
I want to have a custom event handler such that if a duplicate value is
found to already exist that rather than display the above message the
addition is automatically aborted and the row where the existing value
resides is selected.
It seems from searching the forums that this should be something that can be
done with the CurrencyManager but I cannot seem to find an example of how to
use the CurrencyManager in VB.Net.
If there is a better way other than the CurrencyManager please let me know.
Any help much appreciated!