Advertisement

02.17.2008 at 03:15PM PST, ID: 23170167
[x]
Attachment Details

gridview.rows[rowindex] -- can there be invisible columns, but still refer to their repsective cell reference

Asked by amillyard in Visual Studio 2008, Microsoft Visual C#.Net, .NET Framework 2.0

Tags: c#, asp.net 2.x, visual studio 2008 pro, sql 2005 server

I need to reference a cell as pulling MasterAccount db row reference -- but not necessarily want to display the MasterAccount within the gridview to enduser.

is it possible to make a cell reference to a non-displayed column?  -- collect this MasterAccount, but not display it... i.e. when pressing the 'select' hyperlink/button, the enduser then automatically has selected the respective db record.
Start Free Trial
1:
2:
3:
4:
int rowIndex = Convert.ToInt32(e.CommandArgument);
 
GridViewRow row = MyGridView.Rows[rowIndex];
Session["MasterAccount"] = row.Cells[3].Text;
[+][-]02.17.2008 at 03:36PM PST, ID: 20916363

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.

 
[+][-]02.17.2008 at 04:04PM PST, ID: 20916522

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.

 
[+][-]02.17.2008 at 04:20PM PST, ID: 20916592

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.

 
[+][-]02.17.2008 at 04:25PM PST, ID: 20916616

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.

 
[+][-]02.17.2008 at 05:04PM PST, ID: 20916816

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: Visual Studio 2008, Microsoft Visual C#.Net, .NET Framework 2.0
Tags: c#, asp.net 2.x, visual studio 2008 pro, sql 2005 server
Sign Up Now!
Solution Provided By: dusion
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628