how can i adjust column width and height size as well as allow page settings also in gridview

Posted by Vanamalisowjanya under ASP.NET on 12/23/2011 | Points: 10 | Views : 1412 | Status : [Member] | Replies : 3
how can i adjust column width and height size as well as allow page settings also in gridview























<a href=http://talkbackup.com/ >backup</a>, <a href=http://www.pandora-music.name/ >pandora</a>, <a href=http://www.limewire.name/ >limewire</a>

vanamali .sowjanya


Responses

Posted by: balajirnaukri-12656 on: 12/28/2011 [Member] Starter | Points: 25

Up
0
Down
You can adjust the coloumn width and height of the gridview in aspx designer page itself.If you want to change the page index means you have to go to page index event

Thanks and Regards
Balaji.R
ASP.NET Devloper
Solve-IT corp

Vanamalisowjanya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Suvendu on: 12/28/2011 [Member] Starter | Points: 25

Up
0
Down
(i)If you are using databound fields in gridview then you can use it's properties like following example

Ex:
<asp:BoundField HeaderText="Header-Text" DataField="Field1" HeaderStyle-Width="100px" HeaderStyle-Height="50px" ItemStyle-Height="50px" ItemStyle-Width="100px" />


(ii)if you are using Template fields then ,you have do like-

Ex:

<HeaderStyle Width="100px" Height="50px" />
<ItemStyle Width="100px" Height="50px" />

n.b: you use can various other style properties also.

(iii) PagerSetting can be used to customize the style of pager along with pagerStyle
pager setting provides facilities like
1.you can show page navigations as images
2.can place pager row on both above and below the gridview etc

Ex:
<PagerSettings FirstPageImageUrl="FirstPage.png" LastPageImageUrl="LastPage.png" PreviousPageImageUrl="PrevPage.png" NextPageImageUrl="NextPage.png" Visible="true" Mode="NextPreviousFirstLast" Position="TopAndBottom"  />



I hope this will help you.
If you got the answer then please mark this as answer

Thanks

Vanamalisowjanya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Swapnarohit on: 12/28/2011 [Member] Starter | Points: 25

Up
0
Down
Suvendu Sir ! very nice description..
It helped me a lot. Thank you.

Vanamalisowjanya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response