Thanks for the answer. Tried the above. Error: cannot convert from object to string.
Tried to fix it by changing
Value=@context[@column.Key]
to
Value=Convert.ToString(@context[@column.Key])
But that doesn't help. Text box is showing: System.Collections.Generic.Dictionary`2[System.String,System.Object]
Also tried: Value=@context[@column.Key].ToString(). Same result.