customising PagerStyle

J

Joe Abou Jaoude

hi,
In a datagrid that allows paging i m using PagerStyle-Mode=NextPrev. i
want to customize the pager style in order to display two images (or
imageButtons)instead of the text "<" and ">" that correspond to the
previous and next page.

Can this be done ?

thx
 
J

Joe Abou Jaoude

Thx,
this is a solution for what i m looking for.
However we are creating here our own paging and not customizing the
datagrid's pager style. so i guess there's no way to customize the
exsiting pager style in order to replace the links by the buttons

regards.
 
P

Pril

Yes it is. You can creat object and inherits datagrid, then create
procedure:
Private Sub OnGridItemCreated(ByVal sender As Object, ByVal e As
DataGridItemEventArgs)
Dim lit As ListItemType = e.Item.ItemType
If (lit = ListItemType.Pager) Then
.... do what you want with this control or add your own buttons
end if
end sub

I use links instead buttons but that can be changed - see example:
http://[REMOVE THIS -
NOSPAM]test.inform.si/Inform/element.aspx?e1__ac=1&type=2&culture=en-us&e1__
pi=0

lp, pl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top