473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

rowupdating- I cant get values of columns - blanks- please advise

hi there,
I think this is the 3rd forum where I have posted this question, but so far,
I guess I haven't explained myself well enough. Anyway, I have an unbound
gridview that uses a stored procedure to fill it. It is working fine and
fills the grid ok, but when I try to refer to the columns of the row I am
editing, I cannot get anything. I can display values from the row I didn't
click on though, which is really weird to me. I tried to look for
newvalues,but newvalues.count is zero. I saw an article where I should go
through the idictionary (e.keys.keys), but I dont get anything there either.
Am I checking for things in the wrong event? I'm really frustrated, can
somebody shed some light for me? This is how I am checking for my column
values :
Dim x As String = GVTimeSheet.Rows(e.rowindex).Cells(14).Text
I am setting the e.neweditindex to e.rowindex in the rowediting event , then
calling my binding procedure. I have enabled rowupdating,rowediting,
rowcanceing,etc. I have set my datakeynames up. What did I miss? I look
forward to your reply.

thanks a lot.
Oct 25 '07 #1
1 1091
hi,
I found a posting that talks about the problem I have. It's some code by S.
Cheng, where he uses ExtractValuesFromCell. I tried this, but it never goes
beyond two columns( I have 20). So, that doesn't work for me. Is it because I
am not using templates?

"maggie" wrote:
hi there,
I think this is the 3rd forum where I have posted this question, but so far,
I guess I haven't explained myself well enough. Anyway, I have an unbound
gridview that uses a stored procedure to fill it. It is working fine and
fills the grid ok, but when I try to refer to the columns of the row I am
editing, I cannot get anything. I can display values from the row I didn't
click on though, which is really weird to me. I tried to look for
newvalues,but newvalues.count is zero. I saw an article where I should go
through the idictionary (e.keys.keys), but I dont get anything there either.
Am I checking for things in the wrong event? I'm really frustrated, can
somebody shed some light for me? This is how I am checking for my column
values :
Dim x As String = GVTimeSheet.Rows(e.rowindex).Cells(14).Text
I am setting the e.neweditindex to e.rowindex in the rowediting event , then
calling my binding procedure. I have enabled rowupdating,rowediting,
rowcanceing,etc. I have set my datakeynames up. What did I miss? I look
forward to your reply.

thanks a lot.

Oct 25 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Programatix | last post by:
Hi, I'm working on a WebService project. I'm trying to validate data before they are updated to the database by handling the RowUpdating event for a SqlDataAdapter. The data being handled has...
4
by: Maurizio | last post by:
Ciao a tutti, sto cercando di realizzare una classe (ProviderFactory) che mi consenta di scrivere del codice a prescindere dal provider utilizzato per accedere ai dati. Al momento gestisco i...
0
by: fatmosh | last post by:
I have a GridView that is pulling data from a SQL database using a Select command. I would like to use GridView's built-in "Edit, Update, Cancel" functionality because it is very handy. However,...
1
by: Alex A. | last post by:
I've got an unbound gridview that I'm late binding. The RowUpdating isn't firing when the gridview's update button is clicked. What am I missing? Thanks
1
by: anniec | last post by:
I am trying to access a text box in a grid that the user has changed. I tried a bunch of stuff in the RowUpdating event. None of them is giving me the value in the text box. 'doesn't work Dim...
3
by: nick chan | last post by:
Hi i run into some difficulties getting rowupdating to fire when clicking Update link/button on gridview I set datasource at runtime, basically a datatable Edit and Cancel works. I don't know...
0
by: E. Kwong | last post by:
In a Gridview control, I have several BoundFields, and also a couple of TemplateFields. In the Rowupdating event, I try to retrieve one of the BoundFields (i.e. 4th column of the Gridview...
4
by: Bobby Edward | last post by:
I have some custom rowupdating code in my gridview. The user clicks edit, edits the record, clicks update and it runs my code. The code runs fine but the row is still in an 'update' mode. How...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.