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
195
UltraWinDataSource - DataBinding to Controls
posted

Hello,

on a form I had a UltraWinDataSource that is bound to an UltraWinGrid and some standard Label controls (on the grid I show some relevent information (columns) and in the lables more informations(columns) from the datasource.
If I open the form at the first time, I avoid the default selecting of the first row in the grid in the AfterRowActivate event (deselect the active row).

void
ctlGrid_AfterRowActivate( object sender, EventArgs e )
{
 if (bInitComplete == false)
 {
   I
f (ctlGrid.ActiveRow != null) ctlGrid.ActiveRow = null;
 }
 bInitComplete = true;
}

This works good. But the label controls, that I had bind to the data source with DataBindings are display the values of the "normaly" default first row selection. I'am try to find a (if possible easy) way to have empty label controls until the user selects any row in the grid.

I'am using the V11.1.20111.1003.