About ComboBoxAdv

On ComboBoxAdv 1. How to let a CombnoBoxAdv react to GotFocus and LostFocus Event In VB .Net I use a code like this AddHandler cboComboBoxAdv.GotFocus, AddressOf MyShowStatusBarText AddHandler cboComboBoxAdv.LostFocus, AddressOf MyGetRidOfStatusBarText When the cboComboBoxAdv get or lost the focus nothing doesn''t happen 2. I have 2 datatables ''Account'' with fields : {AccountNumber, AccountName} and ''Inventory'' with fields : {NoInventory, ProviderAccountNumber, PurchaseAccountNumber}. I would like to display on a Form bind to the datatable Inventory, showing the controls : Inventory.NoInventory (TextBoxAdv), Inventory.ProviderAccountNumber (ComboBoxAdv showing AccountName from Account Datatable), Inventory.PurchaseAccountNumber (ComboBoxAdv showing AccountName from Account Datatable); Each combobox should have its own BindingContext. How to do it ?

5 Replies

AD Administrator Syncfusion Team May 4, 2005 09:47 PM UTC

Hi Jamal, 1) Please try the Enter and Leave events instead. They should provide the behavior you''re looking for. 2) You should be able to do it as follows: ComboBoxAdv1.DataSource = AccountDataTable ComboBoxAdv1.DisplayMember = "AccountNumber" Then you can just repeat as necessary for each control. Please let me know if these solutions work for you. Regards, Gregory Austin Syncfusion Inc. >On ComboBoxAdv >1. How to let a CombnoBoxAdv react to GotFocus and LostFocus Event > In VB .Net I use a code like this > AddHandler cboComboBoxAdv.GotFocus, AddressOf MyShowStatusBarText > AddHandler cboComboBoxAdv.LostFocus, AddressOf MyGetRidOfStatusBarText > When the cboComboBoxAdv get or lost the focus nothing doesn''t happen > >2. I have 2 datatables ''Account'' with fields : {AccountNumber, AccountName} and ''Inventory'' with fields : {NoInventory, ProviderAccountNumber, PurchaseAccountNumber}. >I would like to display on a Form bind to the datatable Inventory, showing the controls : Inventory.NoInventory (TextBoxAdv), Inventory.ProviderAccountNumber (ComboBoxAdv showing AccountName from Account Datatable), >Inventory.PurchaseAccountNumber (ComboBoxAdv showing AccountName from Account Datatable); Each combobox should have its own BindingContext. >How to do it ? >


PD Prof DISSOU Jamâl-Dine May 9, 2005 05:12 PM UTC

Hi Gregory, Thank you for your assistance. For the second question, it doesn''t work. By yor solution the 2 combos share the same BindingContext (select a item of either combobox make change to the another) Best regards, Jamâl-Dine DISSOU >2) You should be able to do it as follows: > >ComboBoxAdv1.DataSource = AccountDataTable >ComboBoxAdv1.DisplayMember = "AccountNumber" > >Then you can just repeat as necessary for each control. > >Please let me know if these solutions work for you. > >Regards, >Gregory Austin >Syncfusion Inc. > >>On ComboBoxAdv >>1. How to let a CombnoBoxAdv react to GotFocus and LostFocus Event >> In VB .Net I use a code like this >> AddHandler cboComboBoxAdv.GotFocus, AddressOf MyShowStatusBarText >> AddHandler cboComboBoxAdv.LostFocus, AddressOf MyGetRidOfStatusBarText >> When the cboComboBoxAdv get or lost the focus nothing doesn''t happen >> >>2. I have 2 datatables ''Account'' with fields : {AccountNumber, AccountName} and ''Inventory'' with fields : {NoInventory, ProviderAccountNumber, PurchaseAccountNumber}. >>I would like to display on a Form bind to the datatable Inventory, showing the controls : Inventory.NoInventory (TextBoxAdv), Inventory.ProviderAccountNumber (ComboBoxAdv showing AccountName from Account Datatable), >>Inventory.PurchaseAccountNumber (ComboBoxAdv showing AccountName from Account Datatable); Each combobox should have its own BindingContext. >>How to do it ? >>


AD Administrator Syncfusion Team May 10, 2005 04:10 PM UTC

Hi Jamal, Please take a look at the following article in our WinForms FAQ: 4.18 How can I prevent a ComboBox and DataGrid bound to the same DataTable from sharing the same current position? It should apply to your situation. Regards, Gregory Austin Syncfusion Inc.


PI Pro Info replied to Prof DISSOU Jamâl-Dine March 11, 2018 04:16 PM UTC

On ComboBoxAdv 1. How to let a CombnoBoxAdv react to GotFocus and LostFocus Event In VB .Net I use a code like this AddHandler cboComboBoxAdv.GotFocus, AddressOf MyShowStatusBarText AddHandler cboComboBoxAdv.LostFocus, AddressOf MyGetRidOfStatusBarText When the cboComboBoxAdv get or lost the focus nothing doesn''t happen 2. I have 2 datatables ''Account'' with fields : {AccountNumber, AccountName} and ''Inventory'' with fields : {NoInventory, ProviderAccountNumber, PurchaseAccountNumber}. I would like to display on a Form bind to the datatable Inventory, showing the controls : Inventory.NoInventory (TextBoxAdv), Inventory.ProviderAccountNumber (ComboBoxAdv showing AccountName from Account Datatable), Inventory.PurchaseAccountNumber (ComboBoxAdv showing AccountName from Account Datatable); Each combobox should have its own BindingContext. How to do it ?

How can i create chart3D


MK Muneesh Kumar G Syncfusion Team March 16, 2018 07:03 AM UTC

Hi Pro Info   
  
Please find the below user documentation link for create 3D SfChart. 
 
 
If you are using Chart means we recommend you to use our SfChart for better performance and UI. Please find below link for migrating Chart to SfChart.  
 
 
Thanks,  
Muneesh Kumar G.  
  
 


Loader.
Up arrow icon