Hi,
could anyone provide me with a solution (may be a link). Here is the problem:
grid.DataSource = myDataSet.myDataTable;
this.UpdateMyDataTable(myDataSet.myDataTable); //in table we edit let's say a person name
Grid is I.e. 400px height and contains only 3 rows. No scrool bar visible (neither vertical or horizontal). After datasource update action SOMETIMES grid scrools up to the "last row" if it had 6 rows; all 3 rows hides, vertical scrool bar shows up.
Tried to use some grid events (like Suspend/ResumeRowSynchronization()), but it did not help.
Full code of grid (from designer.cs, everything else is just event attaching or styling, ultraGridBand10 is desiner generated band):
this.grid.DataSource = this.myBindingSource;
this.grid.DisplayLayout.BandsSerializer.Add(ultraGridBand10);
this.grid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
this.grid.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.True;
this.grid.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.True;
this.grid.DisplayLayout.Override.FilterClearButtonLocation = Infragistics.Win.UltraWinGrid.FilterClearButtonLocation.RowAndCell;
this.grid.DisplayLayout.Override.FilterOperatorLocation = Infragistics.Win.UltraWinGrid.FilterOperatorLocation.WithOperand;
this.grid.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle;
this.grid.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
this.grid.DisplayLayout.Override.SpecialRowSeparator = Infragistics.Win.UltraWinGrid.SpecialRowSeparator.FilterRow;
this.grid.DisplayLayout.RowConnectorStyle = Infragistics.Win.UltraWinGrid.RowConnectorStyle.Solid;
this.grid.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
this.grid.DisplayLayout.ViewStyle = Infragistics.Win.UltraWinGrid.ViewStyle.SingleBand;
Thank you in advance.
I recall an issue being fixed regarding the inappropriate scrolling of the grid, so I recommend that you make sure that you have the latest hofix. If this doesn't address your issue, perhaps you could post a sample project that demonstrates the issue.
-Matt