or
namespace WindowsFormsApplication4{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { RadPageViewPage page = new RadPageViewPage(); page.Text = "Page"; RadDock dock1 = new Telerik.WinControls.UI.Docking.RadDock(); dock1.Dock = System.Windows.Forms.DockStyle.Fill; page.Controls.Add(dock1); this.radPageView1.Pages.Add(page); this.radPageView1.SelectedPage = page; } }}private void radPageView1_PageRemoving(object sender, RadPageViewCancelEventArgs e) { RadDock dock1; RadPageViewPage page = this.radPageView1.SelectedPage; if (page != null) { Control[] pagecontrols = page.Controls.Find("radDock1", false); int numerofpagecontrols = pagecontrols.Length; if (numerofpagecontrols == 1) { dock1 = (RadDock)pagecontrols[0]; page.Controls.Remove(dock1); dock1.Dispose(); } } }All produced the same result: The SelectedValue is null when I check, but there is still text displayed.
So, my question is: how can I reset the DropDownList to a state where no item is selected by code.
Thanks for any help
void gvLiveCnns_CellBeginEdit(object sender, GridViewCellCancelEventArgs e){ // Do some work, cancel event if work not performed as expected this.gvLiveCnns.EndEdit(); this.gvLiveCnns.ActiveEditor.EndEdit(); this.gvLiveCnns.CloseEditor();}Private Sub findCustomer(Optional ByVal s As String = Nothing) Dim cs = From c In cA.Select(False) Where _ IIf(IsNothing(s), 1 = 1, c.cLastName Like s & "*") _ Select New With _ { _ .Name = c.cLastName & ", " & c.cFirstName, _ .Phone = c.cPhoneHome & " / " & c.cPhoneWork, _ .DOB = c.cDateOfBirth _ } _totalCount = cs.Count _currentCount = 0 loadCustomers() End Sub