string 不包含tooltip的定义,并且找不到可接受类型为stirng的第一个参数的扩展方法
我是通过这样来绑定数据的
<asp:BoundField HeaderText="描述" DataField="orderDescription"
HeaderStyle-HorizontalAlign="Center">
<HeaderStyle HorizontalAlign="Center" Width="250px"></HeaderStyle>
</asp:BoundField>
我想截取在GridView的字符串,不显示某列的所有数据,
方法是这样的:
e.Row.Cells[3].Text.ToolTip = e.Row.Cells[3].Text;
if(int.Parse(e.Row.Cells[3].Text)>20)
e.Row.Cells[3].Text = e.Row.Cells[3].Text.SubString(0,20);
可是出现这样的错误:
“string 不包含tooltip的定义,并且找不到可接受类型为stirng的第一个参数的扩展方法“ToolTips”是否缺少using指令或程序集引用
请大家帮帮看看,谢谢啦。