Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid Editing!

Reply
Thread Tools

DataGrid Editing!

 
 
=?Utf-8?B?UmFlZCBTYXdhbGhh?=
Guest
Posts: n/a
 
      02-06-2005
Dear :

I have datagrid with 5 databound columns I need when user click edit link to
just edit the first cell for each row in column (1). and other 4 columns
keeps its previous form as non editable cell.

how can I achieve this?
 
Reply With Quote
 
 
 
 
Riki
Guest
Posts: n/a
 
      02-06-2005
Raed Sawalha wrote:
> Dear :
>
> I have datagrid with 5 databound columns I need when user click edit
> link to just edit the first cell for each row in column (1). and
> other 4 columns keeps its previous form as non editable cell.
>
> how can I achieve this?


Set AutoGenerateColumns=False, and then add each column as a BoundColumn.
For the non-editable columns, set ReadOnly=True:

<aspataGrid ....>
<Columns>
<BoundColumn DataTextField="myField1" />
<BoundColumn DataTextField="myField2" ReadOnly="True" />
<BoundColumn DataTextField="myField3" ReadOnly="True" />
<BoundColumn DataTextField="myField4" ReadOnly="True" />
<BoundColumn DataTextField="myField5" ReadOnly="True" />
</Columns>
</aspataGrid>

Use the datagrid's Property Builder to set other properties.

--

Riki


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Datagrid: how cut short display of a long description in a datagrid column Brian K. Williams ASP .Net 0 03-02-2004 08:35 PM
RE: Datagrid: how cut short display of a long description in a datagrid column =?Utf-8?B?U3VyZXNo?= ASP .Net 0 03-02-2004 08:31 PM
datagrid in datagrid BK Kim ASP .Net 1 03-02-2004 06:34 AM
Call Datagrid Command column outside datagrid Dave ASP .Net 0 11-20-2003 11:11 AM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments