i got a problem concerning the DropDownBarItem. I have it on a XPToolbar object.
I''m binding the Datasource of it''s ListBox to a DataTable plus setting its Display -and ValueMember. Now i would like to select a specific item directly after I set the Datasource but if I check the count of the listbox items they return 0 until I click on the control at run-time.
When is the DataSet populated to the Listbox ? Is there anything i can do to select a specific item in the ctor of my application ??
Please, need help
ADAdministrator Syncfusion Team March 18, 2005 11:56 AM
It appears that the ListBox doesn''t populate it''s Items collection until after it''s been displayed. You can workaround this by "flashing" the Popup momentarily. And by setting the ListBox to be invisible, you can prevent any additional flicker. The following code snippet demonstrates this:
listBox1.Visible = false;
listBox1.Visible = true;
Hope this helps.