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 7191439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:43:44+00:00 2026-05-28T19:43:44+00:00

i have a gridview and inside i have a TimeSelector, but how am i

  • 0

i have a gridview and inside i have a TimeSelector, but how am i going to retrieve the time from the gridview cause if normally it is a TextBox we will use this

Dim rbSelect As TextBox = DirectCast(GridView2.Cells(1).FindControl("TextBox"), TextBox)

so how should i retrieve the time from the timeselector in the gridview?

time picker control:
<%@ Register Assembly=”TimePicker” Namespace=”MKB.TimePicker” TagPrefix=”cc1″ %>

<ItemTemplate>
<table style="width: 79%; height: 31px;">

<tr>
 <td class="style1">
<asp:Label ID="Label1" runat="server" Text="Time to start:"></asp:Label>
</td>
 <td>
  <cc1:TimeSelector ID="TimeSelector3"  runat="server" AllowSecondEditing="false" DisplaySeconds="False" Height="25px" MinuteIncrement="15" Width="150px" />
 </td>
</tr>

<tr>
 <td>
  <asp:Button ID="Button1" runat="server" Text="Button" 
                                    onclick="Button1_Click" />
</td>
  </tr>

 </table>
</ItemTemplate>
 <ControlStyle Width="100px" />
<ItemStyle Width="210px" />
 </asp:TemplateField>
  • 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-28T19:43:45+00:00Added an answer on May 28, 2026 at 7:43 pm

    So here is some information for you how to do this:

    1. Add reference to the TimePicker.dll. See more information about it here. The picker I just was this

    2. On the aspx page that you are working at the to you write. To see more information about how to formulate the register tag see this:
      <%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="mkb"%>

    3. To use the TimePicker aka TimeSelector (I know this because I looked at the dll in .net reflector see this). You need to have one ScriptManager per page.
      <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

    4. To use the control on the page write:
      <mkb:TimeSelector ID="TimeSelector1" runat="server"></mkb:TimeSelector>

    This is how you add a single TimeSelector to you page.

    Here is a full example of a TimeSelector inside of a gridview:

    Default.aspx

    <%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="mkb"%>
    <%@ Page Title="Home Page" Language="vb" AutoEventWireup="false"
        CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:GridView ID="gvTest" runat="server">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <mkb:TimeSelector ID="TimeSelector1" runat="server"></mkb:TimeSelector>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </form>
    </body>
    

    Default.aspx.vb

    Public Class _Default
        Inherits System.Web.UI.Page
    
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim ls As New List(Of String)()
            ls.Add("Test")
            ls.Add("Test2")
            gvTest.DataSource = ls
            gvTest.DataBind()
        End Sub
    
        Private Sub gvTest_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvTest.RowDataBound
            If e.Row.RowType = DataControlRowType.DataRow Then
                Dim picker As MKB.TimePicker.TimeSelector = DirectCast(e.Row.FindControl("TimeSelector1"), MKB.TimePicker.TimeSelector)
            End If
        End Sub
        Private Sub Save()
            For Each row As GridViewRow In gvTest.Rows
                Dim picker As MKB.TimePicker.TimeSelector = DirectCast(row.FindControl("TimeSelector1"), MKB.TimePicker.TimeSelector)
            Next
        End Sub
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GridView inside of a User Control populated from a List of
Need some help to solve this. I have a gridview and inside the gridview
I have a dropdownlist inside a gridview, that is loaded from a datasource when
i have this template field inside a gridview. <asp:TemplateField ItemStyle-HorizontalAlign=Center> <ItemTemplate> <asp:ImageButton ID=ImageButton2 ImageUrl=~/images/DeleteRecord.gif
I have a DataRepeater with a GridView inside to display some tables from a
How to apply textbox blank validation on button click inside gridview in javascript?I have
So I have this gridview, inside the gridview I have this template field, and
I have this page with a GridView control inside that's bound to database. GridView
I use asp.net 4 c#. I have a gridview, inside a Label. I would
I have a GridView inside Scrolling div, which looks nice but the problem is

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.