Question

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?

Was it helpful?

Solution 2

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.

OTHER TIPS

I think you want your grid to behave somthing like example explained:

http://www.codeproject.com/Articles/37207/Editable-Gridview-with-Textbox-CheckBox-Radio-Butt

Download source code for your refrence. Hope this will help.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top