高分请教,急急急!!!!!

kennyjapan 2010-03-11 04:50:34

VB.NET code
我将Spread的一列定义为New FarPoint.Web.Spread.ButtonCellType
如:.Cells(intRow, Columns.MeishoNM).CellType = _
New FarPoint.Web.Spread.ButtonCellType("OneCommand", ButtonType.LinkButton, dto.MeishoKbnNM)
.Cells(intRow, Columns.MeishoNM).Value = dto.MeishoKbnNM
怎么才能使表示不改行呀.
我只知道TextCellType可以使表示不改行如下面.
Dim tc As New FarPoint.Web.Spread.TextCellType
tc.AllowWrap = False

...全文
99 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lsh2216024 2010-03-12
  • 打赏
  • 举报
回复
bang ding......
kennyjapan 2010-03-12
  • 打赏
  • 举报
回复
怎么没有人理我呀?
kennyjapan 2010-03-11
  • 打赏
  • 举报
回复
FarPoint.Web.Spread.TextCellType直接转换
New FarPoint.Web.Spread.ButtonCellType("OneCommand", ButtonType.LinkButton, dto.MeishoKbnNM)
是不行的呀.
可以用什么方法吗?
xingyuebuyu 2010-03-11
  • 打赏
  • 举报
回复
Dim tc As FarPoint.Web.Spread.TextCellType= _
New FarPoint.Web.Spread.ButtonCellType("OneCommand", ButtonType.LinkButton, dto.MeishoKbnNM)

tc.AllowWrap = False
tc.Cells(intRow, Columns.MeishoNM).Value = dto.MeishoKbnNM
Cells(intRow, Columns.MeishoNM).CellType =tc

设定完成后再进行赋值

16,552

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧