I have an EpiUltraCombo set as the ValueList to a EpiUltraGrid column that is working except the below error is thrown when attempting to type a value into the grid field.
If a value is selected from the dropdown in the grid, it works as expected.
If a value is selected from the EpiUltraCombo that is the ValueList source, it works as expected.
If a value is typed into the EpiUltraCombo, it works as expected.
Error is only generated when typing a value into the grid column.
the EpiUltraCombo datasource is generated from a BAQ.
Code below image.
private void cmbConnection_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)
{
// ** Place Event Handling Code Here **
DataRow connectionRow = this.edvConnection.CurrentDataRow;
string pipe = connectionRow["Pipe_c"].ToString();
DynamicQueryAdapter queryAdapter = new DynamicQueryAdapter(this.oTrans);
queryAdapter.BOConnect();
string queryID = "Lookup_Pipe";
QueryExecutionDataSet parameters = new QueryExecutionDataSet();
parameters.ExecutionParameter.AddExecutionParameterRow("Pipe", pipe , "string", false, Guid.NewGuid(),"A");
queryAdapter.ExecuteByID(queryID, parameters);
if(queryAdapter.QueryResults.Tables["Results"].Rows.Count > 0)
{
DataRow pipeRow = queryAdapter.QueryResults.Tables["Results"].Rows[0];
string odHeight = pipeRow["UD15_ODHeight_c"].ToString();
string odWidth = pipeRow["UD15_ODWidth_c"].ToString();
GetConnectionList(odHeight, odWidth);
}
}
private void GetConnectionList(string odHeight, string odWidth)
{
try
{
cmbConnection.DataSource = null;
DynamicQueryAdapter queryAdapter = new DynamicQueryAdapter(this.oTrans);
queryAdapter.BOConnect();
string queryID = "Combo_Connection";
QueryExecutionDataSet parameters = new QueryExecutionDataSet();
parameters.ExecutionParameter.AddExecutionParameterRow("ODHeight", odHeight, "decimal", false, Guid.NewGuid(),"A");
parameters.ExecutionParameter.AddExecutionParameterRow("ODWidth", odWidth, "decimal", false, Guid.NewGuid(),"A");
queryAdapter.ExecuteByID(queryID, parameters);
cmbConnection.DataSource = queryAdapter.QueryResults.Tables["Results"];
}
catch (System.Exception ex)
{
ExceptionBox.Show(ex);
}
}
private void grdConnections_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args)
{
// ** Place Event Handling Code Here **
args.Layout.Bands[0].Columns["Connection_c"].ValueList = cmbConnection;
}