Update only few columns DATAGRID

  • Thread starter Thread starter Jay Villa
  • Start date Start date
J

Jay Villa

Is it possible to update only few columns in datagrid during OnUpdateCommand
event ? If so, could you help me ....

-thanks
Jay
 
Jay,

That is how the datagrid works by default. Only rows with changes will be
updated...

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
Hi Jay,

As for the update few column in asp.net datagrid, do you means update the
displayed UI data on the page or updating the underlying data in database
or datasource? For displayed data on webpage UI, the current implemented
datagrid doesn't support update portion of the displayed data directly. The
only means to update the Datagrid's display data is to modify the
DataSource and rebind the Grid through DataBind() method. This is the same
with other template DataBound control such as DataList and Repeater...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Jay Villa" <[email protected]>
| Subject: Update only few columns DATAGRID
| Date: Tue, 6 Sep 2005 15:42:45 -0400
| Lines: 7
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: net-66-94-94-66.arpa.fidelityaccess.net 66.94.94.66
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:122693
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Is it possible to update only few columns in datagrid during
OnUpdateCommand
| event ? If so, could you help me ....
|
| -thanks
| Jay
|
|
|
 
Does the ReadOnly attibute of a bound column not work for you?
<asp:BoundField DataField="Code" HeaderText="Code" ReadOnly="true" />

This way the update command will not need this paramater.

HTH

Gerhard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top