set default selected value combobox c#
  • When i am adding combobox on form and fill items so when its appear on form there is no selected item by default how can i select an item by default for it.
  • 2 Comments sorted by
  • you can use 
    ComboBox.SelectedIndex=1; //you can put any number here

  • Vote Up0Vote Down ithackerithacker
    117.50 Karma Accepted Answer
    you can select default value for comboBox like.
    you can use 

    ComboBox.SelectedIndex=0;
    or
    ComboBox.SelectedValue=0;//0 show here for beckend id.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

Top Posters Weekly

Optimum Creative