[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Getting cell value grdiview ASP.net

Posted on 2009-02-20
3
Medium Priority
?
287 Views
Last Modified: 2013-11-11
Hello!
Im having problems with retrieving data from gridview im looping through the gridview but Im not able to use Row.cells to get value or anything like that. Obviously im doing something wrong.

Im having a gridview and a checkbox in every row of the gridview, also a button to submit selected value so lets say, first your suppose to select the rows you want by checking the checkbox at desired row and then do submit them all click on a button.
The button loops through the rows and checks whether the checkbox is checked or not if checked then I want to get the value of a cell in that row.
Is it possible? I appreciate any help! Ive tried everything

Thank you!
For Each row As GridViewRow In GridView1.Rows
            Dim cb As CheckBox = DirectCast(row.FindControl("CheckBox1"), CheckBox)
            If cb.Checked Then
            
            End If
        Next

Open in new window

0
Comment
Question by:clooak
  • 2
3 Comments
 
LVL 19

Assisted Solution

by:daveamour
daveamour earned 80 total points
ID: 23692383
This may help and is a great article!
http://weblogs.asp.net/pleloup/archive/2003/12/09/42303.aspx
 
0
 

Author Comment

by:clooak
ID: 23692588
Still bit confussing anyone happend to have a complete solution of this? Cus I guess this is a rather easy task
Regards
Clooak
0
 

Accepted Solution

by:
clooak earned 0 total points
ID: 23724381
Since noone seems to have payed attention i will raise the points

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses
Course of the Month18 days, 14 hours left to enroll

834 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