Advertisement

01.03.2007 at 12:48PM PST, ID: 22109981
[x]
Attachment Details

value of cell in gridview

Asked by acdagirl in Microsoft Visual Basic.Net

Tags: rowdatabound, gridview, gridviewroweventargs

How can I find the value of a cell in a gridview? I'm getting an error for strLP below in the row databound event?

Dim strLP As String = ""
 
Protected Sub gridReviewer_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
        If (e.Row.RowType = DataControlRowType.DataRow) Then
            For index As Integer = 0 To gridProduct.Rows.Count - 1
               strLP = gridProduct.Rows(index).Cells(0).ToString -----???
            Next
        End If
    End SubStart Free Trial
[+][-]01.03.2007 at 03:28PM PST, ID: 18239915

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.03.2007 at 09:12PM PST, ID: 18241086

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.04.2007 at 04:33AM PST, ID: 18242459

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.04.2007 at 04:42AM PST, ID: 18242523

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: rowdatabound, gridview, gridviewroweventargs
Sign Up Now!
Solution Provided By: gpsharp
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32