Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
680
Deselect an item
posted

The below code is not working:

        UltraListView lv = new UltraListView();
        private void RunSample2()
        {
            lv.View = UltraListViewStyle.List;
            lv.Dock = DockStyle.Fill;
            lv.ViewSettingsList.ImageSize = new Size(0,0);
            lv.ItemActivated += new ItemActivatedEventHandler(lv_ItemActivated);
            for (int i = 0; i < 10; i++)
            {
                UltraListViewItem item = new UltraListViewItem("Test " + i, new string[] { "Test " + i });
                lv.Items.Add(item);
            }
 
            pMain.Controls.Add(lv);
        }
 
        void lv_ItemActivated(object sender, ItemActivatedEventArgs e)
        {
            //MessageBox.Show("Item Activated: " + e.Item.Text);
            lv.ActiveItem = null;
 
        }
The selection is always active and I cannot deselect it. It is always highlighted in blue.