I am using a GridView in asp.net (c#) that is bound to a EntityDataSource
I want to set one column of text to be 3 lines (height) and than fit in the width .
I have played a bit with it but with no success here is the code itself
<asp:TemplateField HeaderText="Description" SortExpression="Description">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Description") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
</ItemTemplate>
<ControlStyle Height="20px" />
<ItemStyle Height="50px" Width="150px" Wrap="False" />
</asp:TemplateField>
btw there is no special need for me for it to be as a template field...
Anyone has an idea ? Thanks !