dropdown list
-
Hi everyone, I am working with a gridview (actually a radgrid from telerik) control, and am having some trouble. I would like to use a dropdown box instead of a simple textbox for some of the columns when in edit/insert mode. The thing is that I would like to make the substitution of controls in code, not using template field. Basically, I was wondering if I could catch an event (and what event), and change the control before it was rendered, the somehow retrieve the combobox selection and update the column value with it. The reason I need to do it this way is because the control is supposed to be generalized for any dataset (using stored procs), so I can't 'hardcode' the template. When putting a row in edit mode, I will need to check each column to determine what control (textbox, dropdown, ...) to use. This info will be provided by the dataset. Thanks in advanced, and please ask for clarification if you need it.
----------------- Genaro
-
Hi everyone, I am working with a gridview (actually a radgrid from telerik) control, and am having some trouble. I would like to use a dropdown box instead of a simple textbox for some of the columns when in edit/insert mode. The thing is that I would like to make the substitution of controls in code, not using template field. Basically, I was wondering if I could catch an event (and what event), and change the control before it was rendered, the somehow retrieve the combobox selection and update the column value with it. The reason I need to do it this way is because the control is supposed to be generalized for any dataset (using stored procs), so I can't 'hardcode' the template. When putting a row in edit mode, I will need to check each column to determine what control (textbox, dropdown, ...) to use. This info will be provided by the dataset. Thanks in advanced, and please ask for clarification if you need it.
----------------- Genaro