Toon posts:

[asp.NET] paginering in datagrid

Pagina: 1
Acties:

Verwijderd

Topicstarter
In mijn asp.NET datagrid gebruik ik NumericPages.

code:
1
 PagerStyle-Mode="NumericPages"


Afbeeldingslocatie: http://www.bekijkhetmaar.com/images/datagrid1.jpg

Dat werkt prima, maar het is niet altijd duidelijk dat de 1 onderaan de pagina, een paginanummer is. Ik wil graag page: toevoegen aan de regel met de paginanummers zodat het er zo uit komt te zien:

Afbeeldingslocatie: http://www.bekijkhetmaar.com/images/datagrid2.jpg

Ik heb al in Google gezocht en op de site van Microsoft maar kan er nix over vinden.

  • damouzer
  • Registratie: Oktober 2000
  • Laatst online: 17-08 15:49
Kun je geen label toevoegen met daar het woord in?

Verwijderd

Topicstarter
@dinokiller
Heb je een voorbeeld hoe ik zo'n label kan toevoegen? Dat kan ik alleen voor of na een datagrid, maar niet op de plaats waar de regel met paginanummers staat

  • whoami
  • Registratie: December 2000
  • Laatst online: 21-08 22:54
Kijk eens naar de PagerStyle property van de datagrid control.

Uit de .NET help:
Use this property to provide a custom style for the paging section of the DataGrid control. Common style attributes that can be adjusted include forecolor, backcolor, font, and content alignment within the cell. Providing a different style enhances the appearance of the DataGrid control.

To specify a custom style for the paging section, place the tags between the opening and closing tags of the DataGrid control. You can then list the style attributes within the opening tag.

[ Voor 82% gewijzigd door whoami op 29-07-2003 14:57 ]

https://fgheysels.github.io/


Verwijderd

Topicstarter
PagerStyle heeft inderdaad de eigenschappen die je noemt
forecolor, backcolor, font, and content alignment . maar dus geen text- eigenschap

  • whoami
  • Registratie: December 2000
  • Laatst online: 21-08 22:54
Inderdaad, je hebt gelijk.
Ik zie ook niet zo direct een oplossing voor jouw probleem eigenlijk. Met custom paging is ook niet hetgeen je wilt.


Hier vind je misschien toch wel iets in....

[ Voor 31% gewijzigd door whoami op 29-07-2003 15:15 ]

https://fgheysels.github.io/


Verwijderd

Topicstarter
Dit ziet er wel aardig uit, ik ga ff goed doorlezen. thnx
Pagina: 1