Home All Groups Group Topic Archive Search About
Author
13 Apr 2005 12:38 AM
Jesse Aufiero
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

Author
13 Apr 2005 12:49 AM
Charlie
I think if you set the DataGrid's ReadOnly property to true, that should do it.

Show quoteHide quote
"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
>
>
>
Author
13 Apr 2005 12:55 AM
Jesse Aufiero
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.

Show quoteHide quote
"Charlie" <cfarrier at charlesfarriersoftware.com> wrote in message
news:A0BB85D4-9FF0-462C-8957-26795FFBF1A8@microsoft.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
>>
>>
>>
Author
13 Apr 2005 2:52 AM
Ken Tucker [MVP]
Hi,

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

Ken
-------------
"Jesse Aufiero" <jaufi***@moaboil.com> wrote in message
news:eoYiPE8PFHA.3144@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