Mi amigo/amiga,
I copied your datagrid code exactly as you have it here and pasted it into a VS form; what i did was executed a simple SELECT statement that selected a long line of text into each column of your datagrid.
Result:
With the way your code is set up, the datagrid blew off the side of the page since the other 3 columns have wrap set to false, but, the Observ column wrapped just fine. I adjusted this so that all columns wrapped and the datagrid was displayed over 85% of the screen just as it should be.
Here is my code: (.aspx page)
<asp:DataGrid ID="dg" runat="server" BackColor="#eeeeee" Width="85%" HorizontalAlign="Center"
Font-Name="Verdana" CellPadding="4" Font-Size="10pt" AutoGenerateColumns="False">
<AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="White" BackColor="Black"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="a" SortExpression="Fecha" HeaderText="Fecha">
<ItemStyle Wrap="True"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="b" SortExpression="Observ" HeaderText="Observaciones">
<ItemStyle Wrap="true"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="c" SortExpression="Estado" HeaderText="Estado">
<ItemStyle Wrap="True"></ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="d" SortExpression="Autor" HeaderText="Autor">
<ItemStyle Wrap="True"></ItemStyle>
</asp:BoundColumn>
</Columns>
</asp:DataGrid>
.
vb page:
Dim sqlcmd As String
sqlcmd = "SELECT 'this is a very long string so long in fact that i want the text to wrap the datagrid does this work out or does it fail like the p2p member says it does?' as a, 'this is a very long string so long in fact that i want the text to wrap the datagrid does this work out or does it fail like the p2p member says it does?' as b, 'this is a very long string so long in fact that i want the text to wrap the datagrid does this work out or does it fail like the p2p member says it does?' as c, 'this is a very long string so long in fact that i want the text to wrap the datagrid does this work out or does it fail like the p2p member says it does?' as d"
dt = da.getDataTable(sqlcmd)
dg.DataSource = dt
dg.DataBind()
DT is a datatable, the object da is just my custom class that retrieves data from a database.
hth.
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.