Infragistics Ultragrid - Businesslistbase Boolean property not firing on bindingsource

Infragistics Ultragrid - Businesslistbase Boolean property not firing on bindingsource

Old forum URL: forums.lhotka.net/forums/t/4787.aspx


Joffies posted on Friday, May 02, 2008

Hi, Friday is here at last!!

I have a businesslistbase class bound to a ultragrid. when changing a column value the bindingsource does not seem to recognise a change has been made. Only when leaving the column by clicking on a different column does the bindingsource recognise the change.

I have tried to change settings on the ultragrid for e.g "UpdateMode=OnCellChange" but still cant seem  to get the change to fire when I change the value. Does the settings on the ultragrid actually negate changes to the bindingsource? 

Joffies replied on Friday, May 02, 2008

I cannot seem to set "OnPropertyChanged" for databinding on ultragrid columns. 

sergeyb replied on Friday, May 02, 2008

I had to deal with a similar issue before.  The only workaround that I found was to issue grid.EndEdit in your Save or Cancel button.

 

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

Magenic ®

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: Joffies [mailto:cslanet@lhotka.net]
Sent: Friday, May 02, 2008 8:09 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] Infragistics Ultragrid - Businesslistbase Boolean property not firing on bindingsource

 

I cannot seem to set "OnPropertyChanged" for databinding on ultragrid columns. 



MGervais replied on Friday, May 02, 2008

I may be mistaken (it wouldn't be the first and certainly won't be the last), however, I do not believe the UltraGrid registers a change until the user leaves the cell in which they are editing. It is at the point where the User leaves the cell that the change is recognized and thus committed to the data source.

You could use the CellChange event if you wish to deal with the potential changes prior to the change being committed to the data source. (http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v8.1~Infragistics.Win.UltraWinGrid.UltraGrid~CellChange_EV.html)

Hope that helps.

Joffies replied on Friday, May 02, 2008

Thanks for the suggestions guys.

I did get around it by calling UpdateData method on the grid like so..

MyUltraGrid.UpdateData()

RebindUI(True, True)

Joffies replied on Thursday, July 24, 2008

The only slight problem i run into now is using the Undo clsa capability with the UltraGrid. The undo works, its only the cell that doesnt reflect the undo immediately but only once it looses focus. I have tried Ultragrid.Refresh but still no joy.

Copyright (c) Marimer LLC