470,636 Members | 1,381 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Gridview

Hi,
I have a gridview inside a table <table>...</table>
I have define explicitly wide of the table, for example 800px.
If we need gridview which is inside 800px table wider than table wide, how
can I show horizontal scroll bar on it?
I do not want to change the wide of main table. Thank you.

TIA & Regards,
Gun
Mar 28 '07 #1
4 8309
Hello,

I've never done it with the GridView, but I'm sure it applies there too:

http://www.w3schools.com/css/pr_pos_overflow.asp

The overflow property defines what an object does when it overflows the
boundaries of its parent. Setting this to scrollable will give you the end
result of a scrollbar which - I think - is what you want.

If you need an example let me know.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Gunawan" <jg**********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi,
I have a gridview inside a table <table>...</table>
I have define explicitly wide of the table, for example 800px.
If we need gridview which is inside 800px table wider than table wide, how
can I show horizontal scroll bar on it?
I do not want to change the wide of main table. Thank you.

TIA & Regards,
Gun

Mar 28 '07 #2
You can put the gridview inside a panel, and use the scrollbars on the
panel. Check out the sample at ASPNet101:
http://aspnet101.com/aspnet101/aspne...llableGridView

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"Gunawan" <jg**********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi,
I have a gridview inside a table <table>...</table>
I have define explicitly wide of the table, for example 800px.
If we need gridview which is inside 800px table wider than table wide, how
can I show horizontal scroll bar on it?
I do not want to change the wide of main table. Thank you.

TIA & Regards,
Gun


Mar 28 '07 #3
Thanks Ben,
It is look like a good article.
An example from you would help me much.
Thank In Advance.

Gun

"Ben Rush" <kw*****@yahoo.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
Hello,

I've never done it with the GridView, but I'm sure it applies there too:

http://www.w3schools.com/css/pr_pos_overflow.asp

The overflow property defines what an object does when it overflows the
boundaries of its parent. Setting this to scrollable will give you the end
result of a scrollbar which - I think - is what you want.

If you need an example let me know.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Gunawan" <jg**********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Hi,
I have a gridview inside a table <table>...</table>
I have define explicitly wide of the table, for example 800px.
If we need gridview which is inside 800px table wider than table wide,
how can I show horizontal scroll bar on it?
I do not want to change the wide of main table. Thank you.

TIA & Regards,
Gun


Mar 29 '07 #4
Now I can figure it out to display scroll bar with panel.
Thank you David.

Regards,
Gun

"David Wier" <da********@noSpamhotmail.comwrote in message
news:ec**************@TK2MSFTNGP02.phx.gbl...
You can put the gridview inside a panel, and use the scrollbars on the
panel. Check out the sample at ASPNet101:
http://aspnet101.com/aspnet101/aspne...llableGridView

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"Gunawan" <jg**********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Hi,
I have a gridview inside a table <table>...</table>
I have define explicitly wide of the table, for example 800px.
If we need gridview which is inside 800px table wider than table wide,
how
can I show horizontal scroll bar on it?
I do not want to change the wide of main table. Thank you.

TIA & Regards,
Gun



Mar 29 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Nalaka | last post: by
3 posts views Thread by NateDawg | last post: by
5 posts views Thread by sutphinwb | last post: by
1 post views Thread by joechipubik | last post: by
2 posts views Thread by antonyliu2002 | last post: by
3 posts views Thread by Peter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.