本文整理汇总了C#中RadComboBox.ClearSelection方法的典型用法代码示例。如果您正苦于以下问题:C# RadComboBox.ClearSelection方法的具体用法?C# RadComboBox.ClearSelection怎么用?C# RadComboBox.ClearSelection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RadComboBox
的用法示例。
在下文中一共展示了RadComboBox.ClearSelection方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindCountryCombo
private void BindCountryCombo(RadComboBox sender)
{
objBindCombo = new BindCombo();
sender.Items.Clear();
sender.ClearSelection();
sender.DataTextField = "COUNTRY_NAME";
sender.DataValueField = "COUNTRY_ID";
sender.DataSource = objBindCombo.GetCountryKeyValue();
sender.DataBind();
sender.Items.Insert(0, new RadComboBoxItem("", "0"));
sender.SelectedValue = "0";
}
示例2: BindStateCombo
private void BindStateCombo(RadComboBox sender, int contryId)
{
objBindCombo = new BindCombo();
sender.Items.Clear();
sender.ClearSelection();
sender.DataTextField = "STATE_NAME";
sender.DataValueField = "STATE_ID";
sender.DataSource = objBindCombo.GetStateKeyValue(contryId);
sender.DataBind();
sender.Items.Insert(0, new RadComboBoxItem("", "0"));
sender.SelectedValue = "0";
}
示例3: SeleccionarItemCombo
public static void SeleccionarItemCombo(ref RadComboBox combo, string valor, string texto)
{
combo.ClearSelection();
if ((combo.Items.FindItemByValue(valor) == null))
combo.Items.Insert(0, new RadComboBoxItem(texto, valor));
combo.Items.FindItemByValue(valor).Selected = true;
}
示例4: BindEmployeeCombo
private void BindEmployeeCombo(RadComboBox sender)
{
objUserMasterDAL = new UserMasterDal();
sender.Items.Clear();
sender.ClearSelection();
sender.DataTextField = "EMP_NAME";
sender.DataValueField = "EMP_ID";
sender.DataSource = objUserMasterDAL.GetEmployeeKeyValue();
sender.DataBind();
sender.Items.Insert(0, new RadComboBoxItem("", "0"));
sender.SelectedValue = "0";
}
示例5: BindSecurityQuestionCombo
private void BindSecurityQuestionCombo(RadComboBox sender)
{
objUserMasterDAL = new UserMasterDal();
sender.Items.Clear();
sender.ClearSelection();
sender.DataTextField = "SECURITY_QUESTION_DESC";
sender.DataValueField = "SECURITY_QUESTION_ID";
sender.DataSource = objUserMasterDAL.GetSecurityQuestion();
sender.DataBind();
sender.Items.Insert(0, new RadComboBoxItem("--Select--", "0"));
sender.SelectedValue = "0";
}
示例6: bindCountryCombo
private void bindCountryCombo(RadComboBox sender, DataSet source)
{
objBindCombo = new BindCombo();
sender.Items.Clear();
sender.ClearSelection();
sender.DataTextField = "COUNTRY_NAME";
sender.DataValueField = "COUNTRY_ID";
if (source != null)
sender.DataSource = source;
else
sender.DataSource = objBindCombo.GetAirLine();
sender.DataBind();
sender.Items.Insert(0, new RadComboBoxItem("", "0"));
sender.SelectedValue = "0";
}
示例7: BindRegionCombo
//#region btnDeleteAirport_Click
//protected void btnDeleteAirport_Click(object sender, EventArgs e)
//{
// try
// {
// int serialNo = 0;
// ImageButton imgbtnDetailDelete = (ImageButton)sender;
// if (imgbtnDetailDelete != null)
// Int32.TryParse(imgbtnDetailDelete.CommandArgument, out serialNo);
// objAirlineMapDal = new AirlineMapDal();
// int result = objAirlineMapDal.DeleteAirportBySrNo(serialNo);
// if (result == 1)
// {
// Master.DisplayMessage(ConfigurationSettings.AppSettings[SuccessMessage.Delete].ToString());
// Master.MessageCssClass = "successMessage";
// BindAirportGrid();
// }
// else if (result == 547)
// {
// Master.DisplayMessage(ConfigurationSettings.AppSettings[FailureMessage.Delete].ToString());
// Master.MessageCssClass = "errorMessage";
// }
// else
// {
// Master.DisplayMessage(ConfigurationSettings.AppSettings[FailureMessage.Delete].ToString());
// Master.MessageCssClass = "errorMessage";
// }
// }
// catch (Exception ex)
// {
// bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME);
// if (rethrow)
// { throw ex; }
// }
//}
//#endregion
#endregion
#region Method
private void BindRegionCombo(RadComboBox sender, DataSet source)
{
objBindCombo = new BindCombo();
sender.Items.Clear();
sender.ClearSelection();
sender.DataTextField = "REGION_LONG_NAME";
sender.DataValueField = "REGION_ID";
if (source != null)
sender.DataSource = source;
else
sender.DataSource = objBindCombo.GetCityKeyValue(0, 0);
sender.DataBind();
sender.Items.Insert(0, new RadComboBoxItem("", "0"));
sender.SelectedValue = "0";
}