borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (see data in datagrid as per date and data will be sorted in ascending order)Next Topic (VB.NET (NOT VB6!) Video Playing Help ...) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : Fetch Individual Values from Datagrid
Poster Message
vls1
Level: Trainee

Registered: 13-04-2006
Posts: 1

icon Fetch Individual Values from Datagrid

I am using a datagrid with the edit function.  On edit, I need to fetch the original value of a template column in the datagrid so I can compare it new value to see if it  has changed.   I am writing the code in VB.NET and it's a web application.

13-04-2006 at 12:21 PM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: Fetch Individual Values from Datagrid

Hi,
Since the Row in the Grid that contains your original data will be the "SelectedItem" - it must be as you are running an Edit on it - then you can use that property to get at the values :-
OldValue = DataGrid.SelectedItem.Cells(indexnumber).Text



____________________________
multi-tasking - the ability to hang more than one app. at the same time.

13-04-2006 at 02:50 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : Fetch Individual Values from Datagrid
Previous Topic (see data in datagrid as per date and data will be sorted in ascending order)Next Topic (VB.NET (NOT VB6!) Video Playing Help ...) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder