Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3233230
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:15:11+00:00 2026-05-17T17:15:11+00:00

I am working on an attendance system that has the following tables: Entry +———+———–+

  • 0

I am working on an attendance system that has the following tables:

Entry
+---------+-----------+
+ EntryID + EntryDate +
+---------+ ----------+


Hour
+---------+--------+---------+
+ EntryID + InHour + OutHour +
+---------+--------+---------+

With the following example data:

Entry
+---------+---------------------+
+ EntryID +     EntryDate       +
+---------+---------------------+
+   1     + 1/1/2010 8:00:00 AM +
+   2     + 1/1/2010 8:01:02 AM +
+---------+---------------------+

Hour
+---------+---------------------+-----------------------+
+ EntryID +        InHour       +        OutHour        +
+---------+---------------------+-----------------------+
+    1    + 1/1/2010 8:00:00 AM +  1/1/2010 1:00:00 PM  +
+    1    + 1/1/2010 2:04:00 PM +  1/1/2010 6:03:00 PM  +
+    2    + 1/1/2010 8:01:02 AM +  1/1/2010 1:02:00 PM  +
+---------+---------------------+-----------------------+

And I have the following gridview:

alt text

I need help with how I should approach a request my client has done today…

Currently, when calling this gridview the “Arrives At” and “Leaves At” fields are retrieved by querying the database and concatenating all the hours in a string then printing it out. However, my client now wants the ability to modify any of the hours in the “Leaves At” column. I don’t know how to approach this request at all, since the hours are grouped together in one cell. I’ve thought showing the hours in a textarea but there’s no way that the changes will be correctly applied on the database if I did this.

Any help will be greatly appreciated as I feel overwhelmed by this.

Thanks in advance,
Eton B.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:15:11+00:00Added an answer on May 17, 2026 at 5:15 pm

    One approach is to allow the updates in a more Ajaxy way, as Aristos discusses. This is typically considered a more user friendly approach and will certainly offer a nicer user experience, but requires familiarity with jQuery and JavaScript and the interactions between the client and the server are a little more complex from your perspective.

    If you want to continue to use the Web control paradigm, consider making the “Arrives At” and “Leaves At” fields TemplateFields. In the ItemTemplate you could continue to display the text you concatenate at the database, but you’d put a GridView in the EditItemTemplate. This GridView could be bound to a data source control (also in the EditItemTemplate) and configured to support editing. If you are programmatically binding data (i.e., you are not using a data source control) then you’ll need to bind the data to the child GridView whenever the parent row becomes editable. This can be done declaratively using markup like so:

    <asp:TemplateField ...>
        <EditItemTemplate>
            <asp:GridView runat="server" id="gvChild" DataSource='<%# SomeFunction() %>' ...>
               ...
            </asp:GridView>
        </EditItemTemplate>
    </asp:TemplateField>
    

    Here, SomeFunction would be a function in your code-behind class (typically) that returns the data to bind to the grid.

    Alternatively, you could bind the data to the child GridView programmatically via the parent GridView’s RowDataBound event handler. Namely, you would check to see if you are dealing with the row being edited (that is, if e.Row.RowIndex = ParentGridViewID.EditIndex). If so, you could programmatically reference the child GridView using e.Row.FindControl("ChildGridViewID") and then set its DataSource property and call its DataBind method.

    When a users clicks the Edit button for the parent grid the “Arrive At” and “Leave At” cells will show as a grid with Edit buttons of their own to modify the individual times. Alternatively, you could put the child editable GridView in the ItemTemplate if you wanted to let the users edit the “Arrive At” and “Leave At” times without requiring the user to first choose to edit the parent record.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a message-passing runtime system that has existing message allocation code that
I am working on an attendance system in PHP, attendance will be recorded with
I was working on an attendance system on ASP.Net where the entire week's dates
I'm working on an attendance entry form for a band. My idea is to
Working with an undisclosed API, I found a function that can set the number
I've been working in a time attendance application and need some enlightment. This is
Working on an extension that use the new experimental devtools apis. How do you
I am working on an attendance/overtime module for a schedule web app. The idea
Working with a Lucene index, I have a standard document format that looks something
I'm working on an application that organizes large amounts of athletic statistics for universities.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.