Does anyone know how to setup an UltraCombo to a default value ( say first row in a data set)
Thank You
Alex
Hi Alex,
Set the Value (or Text) property on the control.
Hi Mike
Thank You for the prompt response
.Text doesn't really work, it only displays the text value but I want the whole row. Here is a code snippet.
i bind my control like this
initialize(Infragistics.Win.UltraWinGrid.UltraCombo cboCtrl,...)
{...
cboCtrl.DataSource = oDataset.Tables[0];cboCtrl.DisplayMember = sDisplayColumn;cboCtrl.ValueMember = sValueMember;cboCtrl.AutoEdit = true;
...}
after form is initialized I want to be able to click on a button, say "View", and be able to see the value in cboCtrl ( say 6 columns )
so I do the following
Infragistics.Win.UltraWinGrid.UltraGridRow row = (Infragistics.Win.UltraWinGrid.UltraGridRow)cboCtrl.SelectedRow;
but unless user specifically clicks on ultraCombo I keep getting an exception.
Please Help
Regards