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
880
Programmtically assigning a datasource to a ultragrid that's on a Ultra Tab Control
posted

Hello:

 

 

I am using the UltraTabControl (version: 11.1.20111.2111) on a Windows form. The control has a Ultragrid (version: 11.1.20111.2111) as a shared control shared across the tabs.

 

My intent is to have the same datasource assigned to the grid but the datamember will change according to the tab that is selected.

 

When I assign the dataset at design time, this works fine.  But when I bind it programmatically to the same dataset control in the Form Load event, the "SelectedTabChanged" event reports that the datasource bound to the control is nothing.

 

What am I doing wrong?

 

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    My best guess is that SelectedTabChanged is firing (one or more times) before the Form_Load event. Perhaps you need to set the grid's DataSource in the form's constructor?

Reply Children
No Data