Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > EditCommandColumn - how to know if user changed data...

Reply
Thread Tools

EditCommandColumn - how to know if user changed data...

 
 
John Walker
Guest
Posts: n/a
 
      05-11-2005
Hi,
When the user clicks 'update' how do I know if any of the text in the
textboxes on that row have been changed by the user, and subsequently will
need to be updated back to the database?

Thanks,
John

 
Reply With Quote
 
 
 
 
Elton W
Guest
Posts: n/a
 
      05-11-2005
Hi John,

In UpdateCommand event, e.Item refers to current edit item
(row) of datagrid.

It is not important to know the text content had been
changed or not. For example, you can update database in
both cases. If it is changed, you just update database
with new content, otherwise it makes no change to
database.

HTH

Elton Wang



>-----Original Message-----
>Hi,
>When the user clicks 'update' how do I know if any of the

text in the
>textboxes on that row have been changed by the user, and

subsequently will
>need to be updated back to the database?
>
>Thanks,
>John
>
>.
>

 
Reply With Quote
 
 
 
 
John Walker
Guest
Posts: n/a
 
      05-12-2005
Elton,
Thanks, I'll do that. I thought that I would do updates only when
necessary, but if your way is the common way, then I'll go with that practice.

Thanks,
John

"Elton W" wrote:

> Hi John,
>
> In UpdateCommand event, e.Item refers to current edit item
> (row) of datagrid.
>
> It is not important to know the text content had been
> changed or not. For example, you can update database in
> both cases. If it is changed, you just update database
> with new content, otherwise it makes no change to
> database.
>
> HTH
>
> Elton Wang
>
>
>
> >-----Original Message-----
> >Hi,
> >When the user clicks 'update' how do I know if any of the

> text in the
> >textboxes on that row have been changed by the user, and

> subsequently will
> >need to be updated back to the database?
> >
> >Thanks,
> >John
> >
> >.
> >

>

 
Reply With Quote
 
John Walker
Guest
Posts: n/a
 
      05-13-2005
Sorry, I just realized that that will not work because I need to update a
date/time field with the date and time that the field was updated with new
data. So, it turns out that I will need to know when data has changed. Is
there a way to do that?

"Elton W" wrote:

> Hi John,
>
> In UpdateCommand event, e.Item refers to current edit item
> (row) of datagrid.
>
> It is not important to know the text content had been
> changed or not. For example, you can update database in
> both cases. If it is changed, you just update database
> with new content, otherwise it makes no change to
> database.
>
> HTH
>
> Elton Wang
>
>
>
> >-----Original Message-----
> >Hi,
> >When the user clicks 'update' how do I know if any of the

> text in the
> >textboxes on that row have been changed by the user, and

> subsequently will
> >need to be updated back to the database?
> >
> >Thanks,
> >John
> >
> >.
> >

>

 
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: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
changed state to up changed state to down FastEthernet LINEPROTO-5-UPDOWN surrealarmada@gmail.com Cisco 3 03-07-2007 06:06 PM
scroll position is changed when style is changed? mxbrunet Javascript 1 11-03-2006 03:40 AM
xmlDocument.Save "
" getting changed changed to "&#10" st@jpa.co.jp ASP .Net 1 10-11-2005 01:30 PM
I know, I know, I don't know Andries Perl Misc 3 04-23-2004 02:17 AM



Advertisments