如何保存gridview控件的状态......... [英] how to save state of gridview control .........

查看:115
本文介绍了如何保存gridview控件的状态.........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用templatefield动态添加gridview控件中的列。假设我添加了一列....现在点击按钮我想在gridview中添加另一列。当我按下现有gridview按钮时未显示列。 ..如何保存gridview控件的状态。请帮帮我

i am adding a column in gridview control dynamically using templatefield .Suppose i have added one column....Now on button click i want to add another column in gridview .when i press the button existing gridview with column not shown...how to save the state of gridview control. Please help me

推荐答案

查看一些示例,在这些例子中添加datagridview中的列。

http://www.cambiaresearch.com/articles/49/adding-columns-to-datagrid-programmatically [<一个href =http://www.cambiaresearch.com/articles/49/adding-columns-to-datagrid-programmaticallytarget =_ blanktitle =New Window> ^ ]

http:// www.simple2kx.com/2011/04/05/programmatically-add-columns-to-datagridview-and-add-its-cellclick-event/ [ ^ ]

http:// stackoverflow。 com / questions / 6156315 / adding-datagridview-columns-programsically [ ^ ]

http ://stackoverflow.com/questions/5524075/programatically-add-new-column-to-datagridview [ ^ ]
See some examples to add columns in datagridview from these..
http://www.cambiaresearch.com/articles/49/adding-columns-to-datagrid-programmatically[^]
http://www.simple2kx.com/2011/04/05/programmatically-add-columns-to-datagridview-and-add-its-cellclick-event/[^]
http://stackoverflow.com/questions/6156315/adding-datagridview-columns-programmatically[^]
http://stackoverflow.com/questions/5524075/programatically-add-new-column-to-datagridview[^]


这篇关于如何保存gridview控件的状态.........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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