473,668 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataGrid Scrollbars

I'm seeing a strange problem with a Windows.Forms.D ataGrid in my
application. When I bind it to a table in a DataSet, everything works
fine. But when I bind it to a DataView, the scrollbars on the grid are
disabled and only become enabled when the user either clicks a column
heading to sort, or manually navigates the records with the keyboard.

Is there some way I can "force" the scrollbars to be active after
binding to a DataView?
-David
Aug 22 '06 #1
1 1723
You tried forcing a sort on the dataview?

"David P. Donahue" <dd******@ccs.n eu.eduwrote in message
news:%2******** *******@TK2MSFT NGP05.phx.gbl.. .
I'm seeing a strange problem with a Windows.Forms.D ataGrid in my
application. When I bind it to a table in a DataSet, everything works
fine. But when I bind it to a DataView, the scrollbars on the grid are
disabled and only become enabled when the user either clicks a column
heading to sort, or manually navigates the records with the keyboard.

Is there some way I can "force" the scrollbars to be active after
binding to a DataView?
-David

Aug 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14849
by: Hmmm... | last post by:
I have 2 forms, each using a DataGrid. The DataGrids are each bound to their own MS ADO Data Control (SP4) - MSADOCD.OCX. For some reason, one of the DataGrids shows horizontal scrollbars when the number of columns exceeds the size of the DataGrid, and one of the DataGrids does not. How do I make the latter DataGrid show horizontal scrollbars when the number of columns exceed the size of the DataGrid. Thanks.
3
1551
by: Jay Ayliff | last post by:
Hi All, I have a VB.NET winforms app created in VS2003. It has a datagrid that is dynamically created on a tab. When the tab is displayed the scrollbars for the datagrid appear inside the outline of the grid, positioned where they would have been if the grid was at its design-time size. When you resize the form by dragging a border the scrollbars flip to their correct positions, but I can't find any way of doing this programmatically so the...
2
6595
by: Jack | last post by:
Mi ingles es peor que el de Toro Sentado, espero que en español haya alguien capaz de entenderme y orientarme Trabajo con Visual Studio 2003 y C#, he creado un control derivado de datagrid y he conseguido modificar la apariencia del datagrid, colores de columnas, fuente, estilo de cabeceras de filas y columnas etc... Hasta aqui todo bien, pero soy incapaz de variar el color y estilo de los scrollbars vertical y horizontal, al parecer esto es...
0
1133
by: Steve | last post by:
I have windows form with datagrid control. I don't want the datagrid control to display vertical and horizontal scrollbars. I wonder whether there is a way to get rid of scrollbars without deriving my own class from System::Windows::Forms::DataGrid? The problem is that unless I derive my own class from DataGrid I don't have access to scroll bar objects. The HorizScrollBar and VertScrollBar
2
1221
by: mg | last post by:
How can I add scrollbars to a DataGrid in a C# WebForm?
1
3670
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, I have to problems concerning datagrids, tabcontrols and scrollbars: 1) I created a form with a TabControl. This TabControl has two TabPages: the first with a datagrid to browse database records and the second with some controls (TextBoxes, OptionButtons...) to edit these records. When the second tab is shown and I use the DataGrid's SetDataBind method, the grid scrollbars are disabled.
4
1738
by: scorpion53061 | last post by:
I have a datagrid that is switches between 2 different datasources. I set the anchor properties of my datagrid to for bottom, top, left , right. My form is set ot maximize on open. If the user resizes the form, the scrollbars that should be visible on the datagrid are not. Occasionally the scrollbars disappear when the form is maximized when
0
1074
by: Tor Inge Rislaa | last post by:
How to control the scrollbars in datagrid In VB 6.0 you could control if you wanted the scrollbars to be automatic on when needed or if you just wanted to show vertical or horizontal scrollbar. Is this possible in a datagrid in VB.net and how? TIRislaa
3
993
by: Jesse Aufiero | last post by:
Hi all, I have a disabled datagrid on my form. Disabling it was, it seemed, the only way to prevent the user from being able to change the selected row or modify the appearance of the grid in any way. The problem is that I need working scrollbars on this grid, and disabling the grid also disables the scrollbars. Is there a way to get the grid to behave as though it were disabled, except
1
1513
by: anujatomar | last post by:
hi I have programmed the datagrid in windows application form to display records.Now if records are many then scrollbars come automatically. this is ok.But i have also created 'Reset' button in the form to set all the fields of the form as blank ,that is , datagrid too. For this i coded it as datagrid1.datasource=nothing. This is clearing the datagrid but the space between two scrollbars in corner is left which is different from the...
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8799
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8586
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7401
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2026
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.