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?
Mike:
Yes, that was exactly it. When I did the assignment in the form's New event, the problem went away.
Thank you very much.
venki
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?