>As part of my ever evolving system, I'm building a module to collection user defined data elements in some kind of user friendly way. I basicly let them build a question sheet, when they add a question to the sheet, they define how the question should be answered such as a textbox, dropdown list or checkbox. That part worked out fine, but now I building the form to collect the data back from the user. The thought is that a form will contain a treeview that display all the sections of the questionaire so they can navigate it quickly. As they click on a section of the questionaire, it will populate a grid with one column having the question and the second column containing a place to collect the answer. This is the part I'm not sure about. As I load the grid with data, I need to be able to say, row 1, column 2 should use a textbox, row 2, column 2 should use a checkbox and row 3 column2 should be a DropDown list.
>
>Is this possible? If so, I would appreciate any pointers or examples
>
>Thanks in advance
>Kirk
You could use DynamicCurrentControl property of the grid and a flag field on the underlying source, e.g.
this.Column2.DynamicCurrentControl="IIF(theCursor.objType='TXT', 'text1', " + ;
"IIF(objtype='CHK','check1', " + ;
"IIF(objtype='CBO','combobox', " + ;
"'text1')))"
Insanity: Doing the same thing over and over and expecting different results.