Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
how to set datagridview vertical scrollbar on leftside ??
Posted 15-Nov-12 19:24pm
dcba1890
Comments
smp 234 at 20-Nov-12 2:13am
   
plz help me
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Place the gridview in div and set the height for the div
and set overflow-y:scroll option to that .
  Permalink  
Comments
smp 234 at 23-Nov-12 3:25am
   
I want it in vb.net windows application. I am not getting what you want to say.
how to set overflow-y:scroll?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

<div style="width: 100%; height: 350px; overflow-y: scroll;">
    <asp:GridView ID="gvtesr" runat="server" AutoGenerateColumns="false" CellSpacing="0" Width="100%" CellPadding="4" ClientIDMode="Static" Border="0" BorderColor="White">
<columns>
<asp:BoundField ItemStyle-Width="25%" DataField="test" HeaderText=" Test" />
</columns>
</asp:GridView>
</div>
 

 

Add try this code to your gridview in design page.
  Permalink  
Comments
smp 234 at 23-Nov-12 4:53am
   
Its for asp.net application.
I want it for windows application.
I want vertical scrollbar on left side..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

http://riteshkk2000.blogspot.in/2009/09/horizontal-scroll-bar-not-appears-in.html[^]
 

 
DataGridView1.AutoSizeColumnsMode = NONE (Default) And
 
DataGridView1.ScrollBars = ScrollBars.Both (Default)
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 23 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100