koraykazgan
Programmer
Hi there,
I am programming a grid web control in C#. The DropDownList control is possible to add Items to the DropDownList. In the properties window, when the control is selected, there is a property called Items. When I open the dialog, I have the ability to add Items to the list. When I then look to the html tags of the Dropdownlist, it is shown as follows:
<asp:dropdownlist id="DropDownList1" ...>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:dropdownlist>
I think, that ListItem is another control, which is added to the control. Now my question is, how I can add a property like this to my control, to be able to add row items to my grid control.
And how do I know, that the Add button in the collection editor is clicked? I have to know this, because I have to allocate memory for my rows in the grid.
Thanks,
Bye...
I am programming a grid web control in C#. The DropDownList control is possible to add Items to the DropDownList. In the properties window, when the control is selected, there is a property called Items. When I open the dialog, I have the ability to add Items to the list. When I then look to the html tags of the Dropdownlist, it is shown as follows:
<asp:dropdownlist id="DropDownList1" ...>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:dropdownlist>
I think, that ListItem is another control, which is added to the control. Now my question is, how I can add a property like this to my control, to be able to add row items to my grid control.
And how do I know, that the Add button in the collection editor is clicked? I have to know this, because I have to allocate memory for my rows in the grid.
Thanks,
Bye...