Have a look at this thread ASPxGridView - How to no wrap a text[^] particularly the response from "Marion".
[Edit]
Try putting adding a nowrap attribute to the cells themselves ...
ASP
<asp:GridView ID="GridView1" runat="server"
onrowdatabound="GridView1_RowDataBound">
...
</asp:GridView>
Code behind C#
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
for (int i = 0; i < e.Row.Cells.Count; i++)
{
e.Row.Cells[i].Attributes.Add("style", "white-space: nowrap;");
}
}
or VB.
Protected Sub GridView1_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs)
For i As Integer = 0 To e.Row.Cells.Count - 1
e.Row.Cells(i).Attributes.Add("style", "white-space: nowrap;");
Next
End Sub