Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2006, 07:45 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Runtime Scrollbar In Datagrid

Hi ALl

i have generated one datagrid at runtime.I want to add scrollbar in that datagrid at runtime also

How is it possible?

Thanks
monika

 
Old December 1st, 2006, 06:08 AM
Authorized User
 
Join Date: Apr 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vivekshah Send a message via Yahoo to vivekshah
Default

Hello

Below code will allow have scrollbar @ runtime.


Code:
<div style="width:100%; height:200; overflow:auto;">
     <asp:DataGrid id="DataGrid1" runat="server"></asp:DataGrid>
</div>

Hope this solves your question.



Vivek Shah
 
Old December 1st, 2006, 06:29 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vivek

Thanks for yr response.

But yr code is helpful at design time.It will be not used in runtime.

I got my solution.

Thanks
monika

 
Old December 1st, 2006, 07:03 AM
Authorized User
 
Join Date: Apr 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vivekshah Send a message via Yahoo to vivekshah
Default

Hello

It's gr8 you got the solution.

The code that i gave you will also display the scrollbar when the length of the datagrid increases beyond the size defined.

Thanks


Vivek Shah





Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrollbar in row of Datagrid Except Header Row Theone84 ASP.NET 2.0 Professional 0 August 11th, 2008 12:10 AM
scrollbar aytacakin Pro JSP 0 December 29th, 2005 05:33 AM
Adding items to datagrid at runtime hisham_abu General .NET 1 August 24th, 2005 02:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.