Greetings,
I am using the following GridTemplateColumn in a RadGrid...
The problem is when the database field "NotifyingIndividualPhone" is null or empty, it throws an error: "Input string was not in a correct format". Any ideas how to get around this issue?
Your help is appreciated!
Matt
I am using the following GridTemplateColumn in a RadGrid...
<
telerik:GridTemplateColumn
HeaderText
=
"Phone"
ItemStyle-Wrap
=
"False"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblNotifyingIndividualPhoneNumber"
runat
=
"server"
Text='<%# string.Format("{0:(###) ###-####}", Convert.ToInt64(Eval("NotifyingIndividualPhone")))%>'>
</
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
The problem is when the database field "NotifyingIndividualPhone" is null or empty, it throws an error: "Input string was not in a correct format". Any ideas how to get around this issue?
Your help is appreciated!
Matt