show data in gridview only some words

nox99

New Member
I'm use grid view for show recent messages...there use datasource...\[code\]<asp:GridView ID="GridView1" runat="server" AllowPaging="True" Width="586px" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" onselectedindexchanged="GridView1_SelectedIndexChanged" onrowcommand="GridView1_RowCommand"> <Columns> <asp:CommandField HeaderText="show" ShowSelectButton="True" /> <asp:BoundField DataField="user_id" HeaderText="user_id" SortExpression="user_id" /> <asp:BoundField DataField="user_name" HeaderText="user_name" SortExpression="user_name" /> <asp:BoundField DataField="sender_mail" HeaderText="sender_mail" SortExpression="sender_mail" /> <asp:BoundField DataField="message" HeaderText="message" ReadOnly="True" SortExpression="message" ControlStyle-Width="70px" ControlStyle-Height="25"> <ControlStyle Height="20px" Width="50px" /> <HeaderStyle Height="10px" Width="70px" /> <ItemStyle Height="20px" HorizontalAlign="Left" Width="70px" /> </asp:BoundField> </Columns> </asp:GridView>\[/code\]there in my database if message is too long then it show in one field...ex:-msg is 'hi how are you'it show full msg......but i show data only 'hi how...'i'm also try set width and height but not work.
 
Top