Я использую другой элемент управления для отображения короткой текстовой строки, в отличие от более длинной текстовой строки.Эта техника может быть использована в вашей ситуации, и, конечно, она может быть расширена.
<ItemTemplate>
<asp:Label ID="lblInspectionNotes" runat="server" Text='<%# Eval("IH_Notes") %>' Visible='<%# evalLength(Eval("IH_Notes")) %>' ></asp:Label>
<asp:TextBox ID="txtInspectionNotes" runat="server" Text='<%# Eval("IH_Notes") %>' Visible='<%# evalLength2(Eval("IH_Notes")) %>' Rows="3" TextMode="MultiLine" ReadOnly="true"></asp:TextBox>
</ItemTemplate>
the function evalLength returns true if the length of the text is less than or equal to 20 characters otherwise it returns false.
the function evalLength2 returns true if the length of the text is greater than 20 characters otherwise it returns false.
this results in only one of the controls being displayed.
A single line label is displayed if the text is 20 characters or less.
A multiline textbox is displayed if the text is more than 20 characters
Then your printing will display differently as well.
I do not know how you are printing your gridview, but this technique may help you.
Надеюсь, это поможет
Харви Сатер