Link to home
Start Free TrialLog in
Avatar of 1jaws
1jawsFlag for United States of America

asked on

combobox problem

ddDate is a RadCombobox and that line starts with ddDate is giving error saying invalid argument about adding items to combobox..
 DateTime dateCounter = System.DateTime.Now;
            System.DateTime today = System.DateTime.Now;

            while (dateCounter >= today.AddDays(-30))
            {
                 
                ddDate.Items.Add(new ListItem(dateCounter.ToString("d"), dateCounter.ToString("d")));
                dateCounter = dateCounter.AddDays(-1);
            }  
ASKER CERTIFIED SOLUTION
Avatar of pivar
pivar
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1jaws

ASKER

perfect. thank you!!