Current Page in GridView
-
Dear Friends: In numeric style of page number in GridView , how can I set the font-color or back-color of current page number?
Mazy
"One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji -
As a workaround, Try to use the following to access that label: The Current Page is called CurrentPageLabel. Assign it a class in the aspx, or try this: GridViewRow pagerRow = CustomersGridView.BottomPagerRow; Label pageLabel = (Label)pagerRow.Cells[0].FindControl("CurrentPageLabel"); Once you have the label, you can assign it a css class.
-
As a workaround, Try to use the following to access that label: The Current Page is called CurrentPageLabel. Assign it a class in the aspx, or try this: GridViewRow pagerRow = CustomersGridView.BottomPagerRow; Label pageLabel = (Label)pagerRow.Cells[0].FindControl("CurrentPageLabel"); Once you have the label, you can assign it a css class.