动态改变Gridview列的显示顺序

k144521 2012-03-20 05:40:53
我用的Dexexpress控件,它可以改变列的顺序
我先把改变后的顺序存下来怎么做啊
我这样做不行啊
For i As Integer = 0 To GridView.Columns.Count - 1
If FormatStr = "" Then

If GridView.Columns(i).Visible = True Then

FormatStr = GridView.Columns(i).FieldName
a = GridView.Columns(i).AbsoluteIndex
End If
Else
If GridView.Columns(i).Visible = True Then
FormatStr = FormatStr & "," & GridView.Columns(i).FieldName
a = GridView.Columns(i).AbsoluteIndex
End If
End If
Next
...全文
102 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

7,765

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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