Hi,
I have (2) Data Grids. "Grid One" has a Combo Box Edit Template for a column, and "Grid Two" doesn't. However, the Combo Box column in "Grid One" is a Foreign Key to "Grid Two" as its Primary Key column.
"Grid One" Combo Box has a default value of '0'. I know that you can fix this by allowing the type to be nullable by setting "byte?" for example.
However, my problem is that the Combo Box column is the Foreign key to "Grid Two", which is the Primary Key for that "Grid Two".
Therefore, I cannot set the data type to be nullable as "byte?" because then I cannot perform correct CRUD operations in "Grid Two" because a Primary Key column cannot be nullable.
I have attached pictures related to "Grid One" & "Grid Two".
QUESTION:
How can I prevent the default value of '0' for Combo Box without setting the data type to be nullable because the Primary Key cannot be nullable in my other table?
Thank you
Attachment:
Combo_Box_Default_0_81c99be9.zip