"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Friday, December 3, 2010

swap dropdown

Hi everyone,
here i'm swaping the dropdown values with the value last selected.
















code:

        ListItem selected = drpdwn_Form.SelectedItem;
        if (selected == null)
            return;
        drpdwn_Form.Items.Remove(selected);
        drpdwn_Form.Items.Insert(0, selected);


Have a nice day... 'N happy Coding :)

No comments: