Wrox Programmer Forums
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 7th, 2007, 08:25 AM
Registered User
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Check In /Out

Ok here is my issue. I want to be able to have two complete table of employee names. Both tables contain all the employees in each one. I also want a column that declares a boolean value. True being that are either in the first table Checked In/Out, false being they aren't. I have the names loaded in a GridView on the front end page. Each name has a button by it. When the button is clicked it needs to set the value of that current row (which contains a name) to false, and declare the other table to true. Then update the lists. This moves an employee from being checked in to checked out and vice versa. My question is can this be done, and do you have any hints or know of any documentation I can use to accomplish this?

 
Old May 8th, 2007, 04:56 AM
Authorized User
 
Join Date: Dec 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to DZukiewicz
Default

Yes, when the button is clicked, you can use the gridView_RowCommand() method and get the selected row from the GridViewEventArgs (RowIndex).

From there, if you've stored the data in a DataTable, you can update the value directly in the DataTable, and then use the SqlDataAdapter to update SQL.

If you look into Disconnected ADO.NET database access, GridView events and DataSets, you should be fine.

Regards,

Dominic





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check programmatically check the password? thomaskelly ASP.NET 1.0 and 1.1 Basics 1 May 16th, 2008 08:49 PM
Connect to VSS check-in Check-out Programatically rhd110 General .NET 6 August 12th, 2007 07:46 AM
have check. rupen Classic ASP Basics 1 May 26th, 2006 01:20 PM
Help 'Check ListView' vs 'Check ListBox' MikeY C# 1 February 24th, 2005 02:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.