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
415
setting the datasource (BindingSource) of an UltraGrid, is this by design
posted

Hi

following code:

----
this.Grid.BeforeRowActivate += new Infragistics.Win.UltraWinGrid.RowEventHandler(this.MainUltraGrid_BeforeRowActivate);

bs = new BindingSource();
bs.DataSource = this.DataSet;
bs.DataMember = "MyTable";
-----

Now, when I set the DataSource to my dataset (right before I set the DataMember of my BindingSource).
the BeforRowActivate Events gets fired and the UltraGrid is bound to the first table in my DataSet's Table Collection.

Does the Ultragrid automatically bind to the first table or is that the BindingSource's behaviour. If the Ultragrid does this, is there any way to prevent this?