如何更改GridView模板字段的索引 [英] How to change the index of a gridview templatefield

查看:74
本文介绍了如何更改GridView模板字段的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网格视图,我在其中设置了一个模板字段.另外,我在后面的代码中动态设置了一个数据源.

现在templatefield显示为第一列,我想将其移至第5列,同时禁用另一列.

我该怎么办?

I have and grid view which i set an templatefield in it. in addition i set a datasource dynamically in code behind.

Now the templatefield appears as the first column, and i want to move it to be the 5 one, and also disable another column.

How can i do it ?

推荐答案

尝试更改Displayindex:
http://msdn.microsoft.com/en-us/library/wkfe535h.aspx [ ^ ]
Try changing the Displayindex:
http://msdn.microsoft.com/en-us/library/wkfe535h.aspx[^]


这篇关于如何更改GridView模板字段的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆