Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
UltraCombo How to prevent row auto select?
posted

I have a problem with following code:

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
// ->

DataTable dt = new DataTable("dt");
dt.Columns.Add("id", typeof(int));
dt.Columns.Add("name", typeof(string));
dt.Rows.Add(new object[] { 0, "000" });
dt.Rows.Add(new object[] { 1, "111" });

ultraCombo1.DataSource = dt;
ultraCombo1.ValueMember = "id";
ultraCombo1.DisplayMember = "name";
ultraCombo1.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.None;
ultraCombo1.RowSelected += new Infragistics.Win.UltraWinGrid.RowSelectedEventHandler(ultraCombo1_RowSelected);
}

void ultraCombo1_RowSelected(object sender, Infragistics.Win.UltraWinGrid.RowSelectedEventArgs e)
{
  // Event is Fired!
}

Then when i type "11" in UltraCombo control - second row selected and event RowSelected fired!

How to prevent this behavior?