Asp.Net GridView 4

Assalamualaykum Wr Br…GridView displays data directly on to the page with out any proper style as shown below:
gridview_unstyle
If we apply style over to gridview as shown below:

<div style=” height:100%; width:100%; overflow:auto;”>
<asp:gridview runat=”server” id=”gv1″ >
…respective columns…
</asp:gridview>
we get scroll bar when data exceeds than specified height and width on page.
Note: the syntax is pure sensitive, if you miss any colon (:) or double quotes (“) or semi-colon(;) then that does not reflect on UI of Page.
Thats all for the day…hope would be useful in future…
Jazakallah Khair…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s