Hi,
i want to give my radGrid's TemplateItem control the following textbinding from my Linq2Sql object which has a user2id propertie foreign key:
Text='<%# DataBinder.Eval(Container.DataItem,"User2.lastname").ToString() %>'
but what can i do to handle the case that the user2id foreign key is null which makes the User2 object null?
is there a chance to handle it in the asp code?
Or do i have to catch the user2id instead of the User2 object and use it in codebehind with the ItemDataBound?
thx, Mario
i want to give my radGrid's TemplateItem control the following textbinding from my Linq2Sql object which has a user2id propertie foreign key:
Text='<%# DataBinder.Eval(Container.DataItem,"User2.lastname").ToString() %>'
but what can i do to handle the case that the user2id foreign key is null which makes the User2 object null?
is there a chance to handle it in the asp code?
Or do i have to catch the user2id instead of the User2 object and use it in codebehind with the ItemDataBound?
thx, Mario