Please forgive me if this question is elemental - I am new to ASP.NET, Telerik, and C#, so I'm struggling a bit. Still, I have managed to create a project that uses Forms Authentication and take me to the page containing my first grid, among other things. I just need another light bulb to go off, then I'll be on my way :)
My RadGrid is named RadGrid1. It contains the following GridHyperLInkColumn.
<telerik:GridHyperLinkColumn
HeaderText="eMail"
Text="email"
UniqueName="email_link"
SortExpression="email"
HeaderStyle-Width="25px"
DataNavigateUrlFields="email"
DataNavigateUrlFormatString="mailto:{0}"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridHyperLinkColumn>
As the grid is being prepared, I want to read the value of the email column in my data source, and if is is null I want to modify the hyperlink column so that the text '(none)' is displayed and the 'mailto:{0}' in the DataNavigateUrlFormatString = ''. In other words, I only want to display a valid hyperlink if there's an email for this row.
If someone could show me exactly what to do - every loop and line - it would help immensely.
Thanks in advance!
S--