Increasing EpiUltraCombo value by 1

Hello, I was wondering how I would increase a EpiUltraCombo index by 1? When I use

int index = cmbChart.SelectedRow.Index;
	cmbChart.SelectedRow.Index = index + 1;

it gives me a error:

This Works in just a .net application in visual studio:

comboBox1.SelectedIndex = comboBox1.SelectedIndex + 1

Curious what the end goal is. are you trying to get to a certain index or just iterating over it?

Just a button to increase/decrease basically to scroll through without using the drop down.

You are setting the index on the UltraGrid, not a ComboBox.
However, it’s much better to work with the EpiDataView when possible. The screen is supposed to respond to that for you.

1 Like

Is there no way to set the selectedindex on a combobox in infragistics? If you check out my other thread account budget project it’s part of that.

There is, but your object is a UltraWinGrid (see your error).

I got it, this can be closed.

    int index = cmbChart.SelectedRow.Index;
		
		index = index + 1;
		
		
		cmbChart.SelectedRow = cmbChart.Rows[index];

Is the combo part of a grid? It appears you are trying to change the row of a grid. If you notice, you aren’t using the same code as for the combobox example. Epicor uses Infragistics objects which are built from Microsoft objects. You should be able to use Microsoft code exactly the same.