Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add rows to custom grid

Status
Not open for further replies.

koraykazgan

Programmer
Jan 11, 2005
17
0
0
DE
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...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top