当前位置: 首页>>代码示例>>C#>>正文


C# RadComboBox.ClearSelection方法代码示例

本文整理汇总了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";
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:12,代码来源:GeographicLocationLookup.aspx.cs

示例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";
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:12,代码来源:GeographicLocationLookup.aspx.cs

示例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;
 }
开发者ID:kenchic,项目名称:SAF,代码行数:7,代码来源:Utilidad.cs

示例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";
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:12,代码来源:UserMaster.aspx.cs

示例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";
 }
开发者ID:pareshf,项目名称:testthailand,代码行数:12,代码来源:UserMaster.aspx.cs

示例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";
		}
开发者ID:pareshf,项目名称:testthailand,代码行数:15,代码来源:RegionCountryMap.aspx.cs

示例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";
		}
开发者ID:pareshf,项目名称:testthailand,代码行数:61,代码来源:RegionCountryMap.aspx.cs


注:本文中的RadComboBox.ClearSelection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。