Hi
We're using UltraWebGrid (assembly="Infragistics4.WebUI.UltraWebGrid.v10.3, Version=10.3.20103.2134) in a page. I am not sure how to set the first row of the grid. As an example, I have 100 rows in a grid and wants to scroll to the 90th row and show records 90-100.
In Client controls, the following code snippet allows to set the first row of the grid.
UltraWebgrid.ActiveRowScrollRegion.FirstRow = UltraWebgrid.Rows(10)
How can we do this in Web Grid?
Thanks, Karthik
Hi ease,
Glad that I was able to help. Please feel free to contact me if you need further assistance.
That works, thanks for the quick response.
Hi Karthik,
Thank you for posting in the community.
From what I can understand you want to scroll to a particular row in your grid. You can do this by setting the ScrollTop property in the grid's DisplayLayout. The ScrollTop property works in pixels therefore you can calculate the required amount to scroll using the DisplayLayout.RowHeightDefault value. For instance:
UltraWebGrid1.DisplayLayout.ScrollTop = rowNumber*rowHeight;
You may need to take into account borders in this calculation.
Note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html
Additional samples demonstrating the features of these grids can be found at:http://samples.infragistics.com/aspnet/
Please let me know if this helps.