Hi,
Anyone know how to correctly handle situation where a TextBox element is populated with foreign key value but that value is null for some records. By default this returns "object-reference-not-set-to-an-instance-of-an-object", with no apparent method to handle this through the object properties. This is not a problem when displaying same data in data grid. I am simply creating a template to display some additional fields for a given record when the row is expanded.
Many thanks.
If itβs a Fk then the control should be numeric.
Assuming thatβs not your problem then try
${data.field.HasValue?data.field:ββ} or
${data.field.Value.ToString()}
1 Like
Perfect! Thanks for your guidance on this.