473,395 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

datagrid woes

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
for it's scrollbars?

Thank you,
Jesse
Nov 21 '05 #1
3 989
I think if you set the DataGrid's ReadOnly property to true, that should do it.

"Jesse Aufiero" wrote:
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
for it's scrollbars?

Thank you,
Jesse

Nov 21 '05 #2
thanks, but what i'm after here is not a restriction on the editability of
the data in the grid, but on the appearance changes that a user can make by
clicking here and clicking there. Rows get highlighted, cells get
highlighted and have a dotted border around them. Scrolling is possible if
the user touches low enough on the bottom row. All these things I want to
prevent... and yet still have scrollbar functionality.

"Charlie" <cfarrier at charlesfarriersoftware.com> wrote in message
news:A0**********************************@microsof t.com...
I think if you set the DataGrid's ReadOnly property to true, that should do
it.

"Jesse Aufiero" wrote:
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
for it's scrollbars?

Thank you,
Jesse

Nov 21 '05 #3
Hi,

Maybe this will help
http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q855q

Ken
-------------
"Jesse Aufiero" <ja******@moaboil.com> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
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
for it's scrollbars?

Thank you,
Jesse

Nov 21 '05 #4

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

Similar topics

7
by: Mark | last post by:
O, woe is me, to have seen what I have seen, see what I see! (That's Shakespeare for those who were wondering what I'm on about) I am "having fun" with cookies. And I wonder if I have...
0
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade...
3
by: Angel Cat | last post by:
Trying to get my jobs to send mail when job fails. Should be easy but it's giving me headache Had a whole slew of issues. Outlook is installed with a n outlook mail profile set up that can...
2
by: Andrew Thompson | last post by:
- NN 4.78 rendering woes, links at far left - I am trying to rework an old site, make it valid html and css, improving the x-browser and 'older browser' compatibility. My efforts so far, have...
0
by: Paul Sampson | last post by:
Hi, I have a typed dataset working nicely, bound to my datagrid (Windows forms) using stored procs for insert/update/delete. The first column contains the primary key of the base table, so...
3
by: John Smith | last post by:
Hello all: What is the best way to get a reference to an item selected in a data grid? What I am trying to do is have it so a user can select from a list in a data grid of all our employees and...
0
by: John Hopper | last post by:
Can someone please tell me why the datagrid doesn't databind and display rows once the Add button is clicked and the cmdSaveToDataset event fires, to add a row to the dataset? I've copied the code:...
1
by: CJ Taylor | last post by:
Alright, so this is strange. someone let me know if this is a *bug* or not. Whenever I would use Dataset.Merge(datarows()) method, I would always get an exception (IndexOutOfRangeException) on...
0
by: Dhruba Bandopadhyay | last post by:
I need advise on ASP.NET & XML. I got a Web Service that I call in real-time to generate a XML document (in main memory, not file). I could use the .NET built-in XML document generation classes,...
1
by: barbara_dave | last post by:
Hi All, I'd like to add numericUpDown controls in every cell of a column of a datagrid. Is there some sample code I can get for reference? Thanks In Advance!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.