|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
datagrid woesHi 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 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 > > > 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 >> >> >> 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 I have a disabled datagrid on my form. Disabling it was, it seemed, thenews:eoYiPE8PFHA.3144@tk2msftngp13.phx.gbl... Hi all, 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
Translate C# to VB.net?
XmlTextReader not getting all Elements Binding an Array to a Combo Box SqlDataReader accessed only by field ordinals? Singleton Pattern for Database Access --- Leave Open or Close Connection "Add Reference" hosed--doesn't display the dialog in VS.NET Combobox and DataSource Newbie: substrings PDF to Picturebox VB.net Datagrid Parent Row |
|||||||||||||||||||||||