Datagird format
-
:)How can i format datagrid. i wants to display 5 records per page but if there is only 1 record for display than datagrid consumes same space as previously for 5 records. it looks very bed. how can i eliminate the same. 1 2 3 4 5 page 1.2.3 if there is 1 record than it looks like: 1 page1.2.3 how can i display it in proper format
-
:)How can i format datagrid. i wants to display 5 records per page but if there is only 1 record for display than datagrid consumes same space as previously for 5 records. it looks very bed. how can i eliminate the same. 1 2 3 4 5 page 1.2.3 if there is 1 record than it looks like: 1 page1.2.3 how can i display it in proper format
What I would do is count the number of records I received, subtract from the number of lines I want, and make that the number of blank lines the page needs to create after the last response. 5 total lines - 1 response = 4 blank lines 5 total lines - 5 responses = 0 blank lines etc. Just statically set the number of total lines to the ammount of space you want to take up.