动态添加列按钮到gridview [英] Dynamically Add column button to a gridview

查看:62
本文介绍了动态添加列按钮到gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用asp.net vb.net
我有一个从存储过程返回的动态数据透视表.动态数据透视图数据可能会增长到更多列.我不想硬编码,但是我不想要的任何列,我想创建一个按钮.
谢谢,
mike

Using asp.net vb.net
I have a dynamic pivot table return from a stored procedure. The dynamic pivot data could grow to more columns. I don''t want to hard code, but rather any columns that I don''t know, I would like a button created.
thanks,
mike

推荐答案

那么,将AutoGenerateColumns设置为true的网格怎么办?

如果仍不能解决问题,则在运行时基于从SP返回的列/数据创建列的问题是什么?你试过了吗?

如果需要,这应该可以帮助您: DataGrid列类型&动态添加列 [ ^ ]

如果不是,请尝试!
So, what about a Grid with AutoGenerateColumns set as true?

If this does not resolve it, whats the issue with creating the columns at runtime based on the columns/data returned from SP? Did you try it?

In case needed, this should help you out: DataGrid Column Types & Dynamically Adding Columns[^]

If not, please try!


希望 [ ^ ]也可能有帮助您已将其添加到Sandeep的答案中.
Hope this[^] also might help you added to Sandeep''s Answer.


这篇关于动态添加列按钮到gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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