我正在开发一个ASP.NET页面,该页面会变换为提供给它的MDB文件。 它目前允许您选择要使用的表,并从那里编辑要编辑的行,并使用文本框填充页面并使用数据填充它们。 这一切都有效,但是当它不是基于字符串的字段类型时会出现问题,例如,我遇到的问题是确定目标单元格何时是CheckBoxField类型。
我的问题是,如何从填充的GridView获取列Web控件值?
I'm working on an ASP.NET page that mutates to the MDB file fed to it. It currently allows you to choose a table to work with, and from there what row to edit, and fills the page with text boxes and fills them with data. This all works but it poses a problem when it isn't a string based field type, for example, what I have a problem with is determining when the cell being targeted is a CheckBoxField type.
My question would be, how can you get the column web control value from a filled GridView?
最满意答案
你有权使用桌子吗? 您可以尝试从列集合中获取类型(table.Columns [name] .DataType(从我的头顶)
然后,您可以使用列类型来选择控件。
Do you have access to the table? You can try getting the type fron the column collection (table.Columns[name].DataType (from the top of my head)
You can then use the column type to select a control.
更多推荐
发布评论