J
J Holsinger
Does anybody know how to add the html 'nowrap' attribute to a particular
column in a datagrid?
This doesn't work, because I suspect the attributes are readonly at this
point:
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
Dim Cell As TableCell = e.Item.Cells(3)
Cell.Wrap = True
'Cell.Attributes("nowrap") = "nowrap"
'Dim myHttpResponse As HttpResponse = Response
'Dim myHtmlTextWriter As New HtmlTextWriter(myHttpResponse.Output)
'Cell.Attributes.AddAttributes(myHtmlTextWriter)
End Sub
column in a datagrid?
This doesn't work, because I suspect the attributes are readonly at this
point:
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
Dim Cell As TableCell = e.Item.Cells(3)
Cell.Wrap = True
'Cell.Attributes("nowrap") = "nowrap"
'Dim myHttpResponse As HttpResponse = Response
'Dim myHtmlTextWriter As New HtmlTextWriter(myHttpResponse.Output)
'Cell.Attributes.AddAttributes(myHtmlTextWriter)
End Sub