Hi All,
I am using rad combo in user control. This user control is being called as edit control in rad grid.
I successfully showing data from database in rad combo box on click of edit icon in grid.
But,
When i m updating, the data/text/value contained in the combo is not there and m unable to find value/test in it . Hence its passing NULL to stored procedure as parameter.
Can anybody tell why this is happening? I am getting this problem with ddlCurrency and ddlReason both.
Thanks,
Awadh
I am using rad combo in user control. This user control is being called as edit control in rad grid.
I successfully showing data from database in rad combo box on click of edit icon in grid.
But,
When i m updating, the data/text/value contained in the combo is not there and m unable to find value/test in it . Hence its passing NULL to stored procedure as parameter.
| if (e.CommandArgument.ToString() == "Edit") |
| { |
| UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID); |
| RadTextBox txtOrderValue = userControl.FindControl("txtOrderValue") as RadTextBox; |
| RadTextBox txtCostOfSale = userControl.FindControl("txtCostOfSale") as RadTextBox; |
| RadComboBox ddlCurrency = userControl.FindControl("ddlCurrency") as RadComboBox; |
| RadComboBox ddlReason = userControl.FindControl("ddlForReason") as RadComboBox; |
| //Prepare new row to add it into DataSource |
| DataSet dsValidate = new DataSet(); |
| int userID = Convert.ToInt16(hidUserId.Value); |
| Convert.ToSingle(txtOrderValue.Text); |
| _Order.CostOfSale = Convert.ToSingle(txtCostOfSale.Text); |
| _Order.Creator = Convert.ToInt16(hidUserId.Value); |
| _Order.CurrencyCode = ddlCurrency.SelectedValue.ToString(); |
| _Order.Reason = ddlReason.SelectedValue.ToString(); |
Can anybody tell why this is happening? I am getting this problem with ddlCurrency and ddlReason both.
Thanks,
Awadh