?
Solved

GridView Row Edit Cell Value in ASP.NET 2.0

Posted on 2010-08-13
2
Medium Priority
?
782 Views
Last Modified: 2013-11-07
Hello Experts,

I need a cell value from Grid View Row_Edit.

Qty Name State
1     John    CA
2     DAVID  FL

When I edit second row, I need value of Name, I did something like this:

 Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing

Dim strName as string = GridView1.Rows(e.NewEditIndex).Cells(1).Text

 I get strName = ""


End Sub


How can I get cell value????
0
Comment
Question by:ASPDEV
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Kamal Khaleefa earned 2000 total points
ID: 33435610
try one of this

Dim strName as string = GridView1.Rows(e.NewEditIndex).Cells(0).Text

or

Dim strName as string = GridView1.Rows(e.NewEditIndex).Cells(2).Text

of
Dim strName as string = GridView1.Rows(e.NewEditIndex).FindControl("ID Of your Controll")
0
 

Author Closing Comment

by:ASPDEV
ID: 33488340
Thanks,

It worked:
Dim EntryType As Label = GridView1.Rows(e.NewEditIndex).Cells(3).FindControl("lbltype")
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question