Gridview Paging and Footer

i hv a gridview that has paging enabled , and there is footer that is also showing some data in a very last column , is there a way that my paging and the data in the footer be shown in single row together , so paging is shown in left and data is shown on the right
Who is Participating?
panasonic2012Connect With a Mentor Author Commented:
i worked on it , by adding another cell to the paging programmatically and binding my desired label there , and then assigning that cell a width of 100% and added class to it with the attribute float=right
Kamal KhaleefaInformation Security SpecialistCommented:
try to use custom paging (  <PagerTemplate>)and inside it put your footer


<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td> here put your next back buttons also ur footer </td>
panasonic2012Author Commented:
i tried a custom paging by adding this in the row created event

if (e.Row.RowType == DataControlRowType.Pager)
                LiteralControl control = new LiteralControl(); //new litearl control
                control.Text = "Showing " + count + " results "; // add text
                Table table = e.Row.Cells[0].Controls[0] as Table;  // get the pager table
                TableCell newCell = new TableCell(); //Create new cell
                newCell.Controls.Add(control);  //Add contol
                table.Rows[0].Cells.Add(newCell); //add cell


Open in new window

it does show the text "Showing X results " but i want it to appear at the very right of the grid , right now it shows next to the paging numbers .. any suggestion ????
Monica PSoftware DeveloperCommented:
custom paging with linkbutton

Check whether it meet similar to ur requirement
panasonic2012Author Commented:
plz ask me more if anyone needs it
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.