G
graphicsxp
Hi,
I've come across a few solutions on the forum for this problem but it
still don't work
I have a column that can contains very long text value. I was hoping
the value would be truncated to the size of the column's width. So I
did the following :
Protected Sub grdCuttings_RowCreated(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.GridViewRowEventArgs) Handles
grdCuttings.RowCreated
Dim iWidth As Integer = 100
If e.Row.RowType = DataControlRowType.DataRow Then
For r As Integer = 0 To Me.grdCuttings.Columns.Count - 1
Me.grdCuttings.Columns(r).ItemStyle.Width = iWidth
Me.grdCuttings.Columns(r).ItemStyle.Wrap = False
Next
End If
End Sub
It changes the width but the text is wrapped instead of being
truncated..
Can you help ?
I've come across a few solutions on the forum for this problem but it
still don't work
I have a column that can contains very long text value. I was hoping
the value would be truncated to the size of the column's width. So I
did the following :
Protected Sub grdCuttings_RowCreated(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.GridViewRowEventArgs) Handles
grdCuttings.RowCreated
Dim iWidth As Integer = 100
If e.Row.RowType = DataControlRowType.DataRow Then
For r As Integer = 0 To Me.grdCuttings.Columns.Count - 1
Me.grdCuttings.Columns(r).ItemStyle.Width = iWidth
Me.grdCuttings.Columns(r).ItemStyle.Wrap = False
Next
End If
End Sub
It changes the width but the text is wrapped instead of being
truncated..
Can you help ?