I have columns in RadGrid.
I one column (HyperlinkColumn) I want to short DataTextField when it is longer than 50 characters for example.
I have this code:
But it doesn't work properly (I've put this code into Rad ItemDataBound event).
Can anyone help me?
I one column (HyperlinkColumn) I want to short DataTextField when it is longer than 50 characters for example.
I have this code:
| If (TypeOf (e.Item) Is GridDataItem) Then |
| 'Get the instance of the right type |
| Dim dataBoundItem As GridDataItem = e.Item |
| 'Check the formatting condition |
| If (dataBoundItem("wydarzenie_id").Text).Length > 6 Then |
| dataBoundItem("wydarzenie_id").Text = "asd" |
| 'Customize more... |
| End If |
| End If |
But it doesn't work properly (I've put this code into Rad ItemDataBound event).
Can anyone help me?