DataGrid Problems - resize columns

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hi,

is it possible in a DataGrid to disable the row-resize
and the column-resize function?

And is it also possible to disable that the user can mark
the whole row?

thanks for help
Michael
 
The Row/Column resizing behavior can be disabled in two ways. The easiest
is to set the RowHeadersVisible and ColumnHeadersVisible properties to
false. If the headers are not visible, then a user cannot click on them to
resize the rows/columns or to select rows. If you must display the headers
it is possible to write a class that inherits from the DataGrid and
override the OnMouseDown method so that if the mouse event occurs over the
row or column headers the overriden function in DataGrid is not called.

David Wrighton

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Michael" <[email protected]>
| Sender: "Michael" <[email protected]>
| Subject: DataGrid Problems - resize columns
| Date: Mon, 3 Nov 2003 01:03:08 -0800
| Lines: 10
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOh6UyKLA/21+1lSU2J4kVa56yFfw==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:37531
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi,
|
| is it possible in a DataGrid to disable the row-resize
| and the column-resize function?
|
| And is it also possible to disable that the user can mark
| the whole row?
|
| thanks for help
| Michael
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top