Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to capture data from grid
Message
 
To
19/05/2004 08:41:32
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00905231
Message ID:
00905267
Views:
12
Bill,

>I am using a "Select" button on my web grid, that is displaying the PK Number(int) of the DataSet. I am trying to capture that number that is displayed on the button and save it to a public variable, when that button is depressed, so that I may open another form to edit that row/record, using that parameter for the new DataSet.

So, are you trying to pass the PK of a specific row in the grid? If so, there are a number of ways to accomplish this. Probably the easiest/best way is to follow the example in the Jump Start Guide for building a Web Forms application. The first column in grid on the CustomerOrders page is a Hyperlink column that passes the PK of the current row as a URL parameter to Order Edit page. Check out "Step 9 - Enhancing the Orders DataGrid" for details.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform