Hi,
I am trying to localize the contents of the Grid Pager and this is the code i have in the Item Data Bound event handler
This works fine, but i have over 20 grids in different web pages in my application. Is there any way to standardize this instead of making this change in 20 different places?
Ullas
I am trying to localize the contents of the Grid Pager and this is the code i have in the Item Data Bound event handler
if (e.Item is GridPagerItem) //set the appropriate values in the Pager drop down { GridPagerItem gridPagerItem= e.Item as GridPagerItem; Label pageSizeLabel = gridPagerItem.FindControl("ChangePageSizeLabel") as Label; if (null != pageSizeLabel) pageSizeLabel.Text = "Number of Items:"; GridUsersList.PagerStyle.PagerTextFormat = "{4}{5} " + "items in " + "{1}" + " pages"; GridUsersList.PagerStyle.NextPageToolTip = "Next Page"; GridUsersList.PagerStyle.PrevPageToolTip = "Previous Page"; GridUsersList.PagerStyle.LastPageToolTip = "Last Page"; GridUsersList.PagerStyle.FirstPageToolTip = "First Page"; }This works fine, but i have over 20 grids in different web pages in my application. Is there any way to standardize this instead of making this change in 20 different places?
Ullas