By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,002 Members | 2,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,002 IT Pros & Developers. It's quick & easy.

Problem in Displaying vertical scroll bar

P: 3
I am facing an issue with the vertical scroll bar. Actually i am using data grid to display the data in my tables, and also i am using the same view form to diplay the data for different tables.
When i display the data in table1 it shows all the data with the vertical scroll bar but when i display Table1 again after displaying the Table2 which have just one row of data and hence no vertical scroll bar, the vertical scroll bar of the table1 also disappears.

Can anybody let me know why is it happening
Jan 23 '07 #1
Share this Question
Share on Google+
2 Replies


kenobewan
Expert 2.5K+
P: 4,871
If you want the same result everytime you are going to have to program the result rather than a default where you can't predict the result. One way is to set the overflow with a height and width:
Expand|Select|Wrap|Line Numbers
  1. <DIV style="OVERFLOW: auto; WIDTH: 50%; HEIGHT: 200px; TEXT-ALIGN: left">Datagrid</DIV>
Or set it through your CssStyle...

Hope that this helps.
Jan 23 '07 #2

P: 3
akm
If you want the same result everytime you are going to have to program the result rather than a default where you can't predict the result. One way is to set the overflow with a height and width:
Expand|Select|Wrap|Line Numbers
  1. <DIV style="OVERFLOW: auto; WIDTH: 50%; HEIGHT: 200px; TEXT-ALIGN: left">Datagrid</DIV>
Or set it through your CssStyle...

Hope that this helps.

Hi kenobewan ,

Actually i want the vertical scroll bar to be displayed only if the no of rows are more than number of viewable rows also i will be glad if you can provide me with sample code in C#
Jan 23 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.