Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

combo box issues

$
0
0

hi. okay, will then paste the  below. what i have is a combo box and it sorts the data grid columns. if i try to sort the columns, before oepning a csv file, get an error array out of bounds error. so how do i make sure, that i do not get that error? also, want to have a label above the combo box and a keyboard short cut, how do i do this. thanks.                    // Add items to the combo box.
      // For loop to loop through all items  selected in the data grid.

      for (int i = 0; i < dgvDisplayData.Columns.Count; i++)
      {
        cboSortItems.Items.Add(dgvDisplayData.Columns[i].HeaderText);
      }

      // Select the first item in the combo box.

      cboSortItems.SelectedIndex = 0;

so. how do i do this, have got keyboard short cuts for buttons. thanks.


http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>