Hello,
I am using Netadvantage 2010.1, and I am facing problem with the UltraGrid.
If i modify anything in the Template Add Row and I click back to an another row, a new row well be add in my ultragrid
this is the normal behavior.
what is ur problem?if you don't want to add new row use
UltraGrid1.DisplayLayout.Override.AllowAddNew = AllowAddNew.No;
thanks for the suggestion Hady :)
My problem, when I modify anything In the first row and I click back to an another well be created!
My problem, when I modify anything In the first row and I click back to an another a new row well be created!
You could handle BeforeRowDeactivate and check for IsAddRow and check for empty cells and then cancel the event so as to keep the user in the row. But once they leave the row, there is no way to stop that row from being committed.
Please Mike, have any idea to disable committing row if any cells in row are empty..
yes that's the problem,
but is not the right solution :(
Anyway, thank you very much, Mike, for your careful :)
Hi,
I am unable to view the video you posted here. It appears to require some third-party plug-in and neither FireFox nor Internet Explorer can determine which one.
Anyway,if you are using the TemplateAddRow in the grid, then leaving that TemplateAddRow and clicking on another row in the grid will commit that row. There is no way around this, because the BindingManager in DotNot automatically commits the changes whenever the current position changes.
You could try setting the SyncWithCurrencyManager on the grid to false so that clicking on a grid row does not cause a change in position, but I am not confident that this will work.