Re: Datagrids - Rows???

From: Darryn Ross (darryn_at_datawave.com.au)
Date: 03/23/05


Date: Thu, 24 Mar 2005 08:30:23 +1000

ok... does really help my case at all.

one other thing i could try to do is, check for a setting in the
CurrentCellChanged event to see wether it is a row i should be changing or
and if it isn't deny the change??

i am not sure how to do this though?

> Hi,
>
> As far as I know, you can only set columns or the entire datagrid read-
> only. What I suggest is that in your table (in the database), you have a
> column "ReadOnly" for example and you set it for the rows you want. When
a
> user tries to modify a particular row, you do a lookup on that column in
> your dataset in the CurrentCellChanged event of your DataGrid.
>
> Hope this helps,
>
> E
>
> --
> Message posted via http://www.dotnetmonster.com



Relevant Pages

  • Datagrid does not accept commas
    ... Here is the scenario: ... CurrentCellChanged event of datagrid and also RowChanging/ColumnChanging ... - RowChanging/ColumnChanging events do not raise at all in the above ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Datagrids - Rows???
    ... you can only set columns or the entire datagrid read- ... What I suggest is that in your table (in the database), ... your dataset in the CurrentCellChanged event of your DataGrid. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: DataGrid Control Selected Index
    ... private CurrencyManager cm1; ... > CurrentCellChanged event and still cannot get the KeyUp Event to fire. ... > I am using a DataGrid control to populate an all customers list. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Row selection in Windows Forms DataGrid
    ... > I'm using a Windows Forms DataGrid control to display a list of devices ... CurrentCellChanged event ... > Does anyone know the correct magic incantation for full row selection ... using .NET Windows Forms DataGrids? ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Datagrid cell position and textboxes
    ... > cell in a datagrid place a textbox in the exact location and focus on the ... when done save the value in the datagrid and move the textbox. ... > I'm thinking that on the currentcellchanged event find the currentcell ...
    (microsoft.public.dotnet.framework.performance)