Re: Datagrids - Rows???

From: Erwin Pant via DotNetMonster.com (forum_at_DotNetMonster.com)
Date: 03/23/05


Date: Wed, 23 Mar 2005 13:16:45 GMT

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

  • Re: Datagrids - Rows???
    ... > As far as I know, you can only set columns or the entire datagrid read- ... > user tries to modify a particular row, you do a lookup on that column in ... > your dataset in the CurrentCellChanged event of your DataGrid. ...
    (microsoft.public.dotnet.framework.windowsforms.databinding)
  • Re: Adding rows to DataGrid across multiple PostBacks
    ... (not adding to the database or whatever you want to perform ... is only after adding information for every Id Number to the datagrid.) ... datasource which can contain a collection of datatables. ... The user can then put in a new IDNumber, ...
    (microsoft.public.dotnet.framework.aspnet)
  • DataGrid and Selected Rows
    ... In the form I instantiate a DataTable object. ... I have a DataGrid on the form which is bound to the *second* ... How can I iterate through the rows of the grid and see which ones are ... Keep in mind that the DataGrid is not bound to the Access database, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: show collapsible datagrid headers
    ... I get a bunch of fields showing my expenses,for example, from the database. ... it should expand to show me columns for CarInsurance and HomeInsurance.Then i ... So i might have to create DIV tags and associate them with the datagrid ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: moving record in datagrid
    ... the results from your database ... can be determined by sort order. ... Obviously the "rows" in a datagrid have to be ordered by one of the fields. ... priority" field where the user assigns the priority of the record in the ...
    (microsoft.public.dotnet.framework.windowsforms.controls)