I have a datagrid with two columns-name,id and both are
editable.

My requirement is that I want my second column(id) as a
non updatable column.Though I can change the values of
column by editing it,upon saying update,the second
shouldn't be updated.

Do we have to set any property or do it programatically?

If so,how?

Re: datagrid-update by Miha

Miha
Fri Dec 05 06:37:49 CST 2003

Hi reiks,

You might want to set column in DataTable as readonly (DataColumn.ReadOnly =
true) or you might set GridColumnStyle.ReadOnly property to true.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com

"reiks" <anonymous@discussions.microsoft.com> wrote in message
news:090301c3bb24$d2d11380$a301280a@phx.gbl...
>
>
> I have a datagrid with two columns-name,id and both are
> editable.
>
> My requirement is that I want my second column(id) as a
> non updatable column.Though I can change the values of
> column by editing it,upon saying update,the second
> shouldn't be updated.
>
> Do we have to set any property or do it programatically?
>
> If so,how?
>
>
>
>