E
et
How can I dynamically get the type of control in a datagrid. I have several
columns that when editing a row, one column may be a dropdownlist, the next
column may be a text box, the next column may be a label, or something else,
depending on what the datagrid is for and whether the user has access to
that column. So when retrieving the values of the datagrid row in order to
update the database, I need to be able to retrieve the type of control that
is in each column.
Question 2: How do I set the type of control dynamically in the first
place. In some circumstances, I want to be able to allow the user edit of
the row, but as above depending on their rights, one column may be a drop
down or it may be a text box or it may be an uneditable label.
TIA
columns that when editing a row, one column may be a dropdownlist, the next
column may be a text box, the next column may be a label, or something else,
depending on what the datagrid is for and whether the user has access to
that column. So when retrieving the values of the datagrid row in order to
update the database, I need to be able to retrieve the type of control that
is in each column.
Question 2: How do I set the type of control dynamically in the first
place. In some circumstances, I want to be able to allow the user edit of
the row, but as above depending on their rights, one column may be a drop
down or it may be a text box or it may be an uneditable label.
TIA