Re: How to deny entering cell

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: ClayB [Syncfusion] (clayb_at_syncfusion.com)
Date: 06/28/04


Date: Mon, 28 Jun 2004 07:41:33 -0400

Maybe the idea in this FAQ will work for you.

George Shepherd's Windows Forms FAQ contains an entry entitled:

     How can I make the datagrid have no currentcell?

Check it out at:
http://www.syncfusion.com/faq/winforms/search/855.asp

=============================================
Clay Burch, .NET MVP

Syncfusion, Inc.
visit http://www.syncfusion.com for .NET Essentials

"Damir" <damir@xx.ch> wrote in message
news:O3qkHRPXEHA.2852@TK2MSFTNGP12.phx.gbl...
> Hallo .NET friends
>
> I have a small problem with the Data Grid. I want to select the whole
> DataGrid row, without entering cell. at the moment I integrated following
> line into CurrentCellChanged event:
>
> dataGrid1.Select(dataGrid1.CurrentSell.RowNumber);
>
> which selects me the current row, but the cell is entered even if i set
the
> ReadOnly property on true!
> The DataGrid doesn't look nice then because then you have a blue line with
a
> gray box in the middle of the grid.
>
> Any helb will be appriciated
>
>
> Best regards
>
> Damir
>
>
>



Relevant Pages

  • How to deny entering cell
    ... I have a small problem with the Data Grid. ... DataGrid row, without entering cell. ... Any helb will be appriciated ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Can we populate a XML formated string into a dataset?
    ... asp.net faq: http://asp.net.do/faq/ ... (e.g., datset.read(string filename), dataset.readxml(string ... If I have a string with XML format that is transfered from somewhere else, ... data in a data grid? ...
    (microsoft.public.dotnet.framework.aspnet)