Advertisement

02.21.2008 at 06:14AM PST, ID: 23181089
[x]
Attachment Details

Read cell value in GridView

Asked by shahprabal in Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: gridview best practice, asp .net

I have a gridview that has some columns that are not visible that I need to read the value from on button click... The two columns are simple bound columns... I know how to read the values from template columns... but I think the page would be heavier if I convert them to template columns... I just want to know what is the best practice in this case...

I get a datatable and bind it to the gridview.
The user can select some or all rows (by checking the checkbox column).
The user clicks a button in which case I am iterating through the rows and finding the ones that are checked (I have this working)... reading the two values and saving the record.
Its the reading values part that I have questions on... but would appreciate any comments on how to get this done in a better way.Start Free Trial
[+][-]02.21.2008 at 09:56AM PST, ID: 20950107

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

Zones: Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: gridview best practice, asp .net
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.04.2008 at 04:45AM PDT, ID: 21280597

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906