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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate DropDownList with series of numbers

Status
Not open for further replies.

marcasii

Programmer
Aug 27, 2001
109
AU
Hi, Is there an easy way of populating a DropDownList with the numbers 1 - 30 in C#?
 
for( int i = 1; i <= 30; i++ )
DropDownList1.Items.Add( i.ToString() );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top