G
Guest
hey all,
i'm using the DataGrid1_ItemDataBound event like this:
If e.Item.ItemType = ListItemType.Item _
Or e.Item.ItemType = ListItemType.AlternatingItem _
Or e.Item.ItemType = ListItemType.SelectedItem Then
Dim sValue As String
sValue = e.Item.DataItem("PTPROBM")
If sValue.Length > 20 Then
e.Item.Cells(1).Text = sValue.Substring(0, 50)
End If
Are there any other ways to do this more gracefully? or less code? just
wondering?
thanks,
rodchar
i'm using the DataGrid1_ItemDataBound event like this:
If e.Item.ItemType = ListItemType.Item _
Or e.Item.ItemType = ListItemType.AlternatingItem _
Or e.Item.ItemType = ListItemType.SelectedItem Then
Dim sValue As String
sValue = e.Item.DataItem("PTPROBM")
If sValue.Length > 20 Then
e.Item.Cells(1).Text = sValue.Substring(0, 50)
End If
Are there any other ways to do this more gracefully? or less code? just
wondering?
thanks,
rodchar