Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a hidden value from an infragistics webgrid.
Message
 
To
03/12/2008 15:33:29
Tegron Tegron
Platinum Technologies
Ohio, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01365397
Message ID:
01365401
Views:
9
>I have been researching and attempting various methods for the past two days without success. I am fairly new at writing ASP.NET applications, but I would think that it would be relatively simple to grab a value from a grid to store it into a variable that I could use to pass as a querystring to another page. This was simple when using the windows version of the grid.
>

I would probably just use the CommandArgument property on the button and store the ID there, ex.
<asp:Button runat="server" id="btnSample" CommandArgument='<%# Eval("NameOfIDField") %' OnClick="btnSample_Click" /> 
Then, inside the handler for the Click event you have access to the CommandArgument.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform