GridView column to be filled with time on button click

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ravitunk
    New Member
    • Jun 2007
    • 88

    GridView column to be filled with time on button click

    Hello, I have a GridView with the following columns.

    Code:
    <asp:GridView ID="myGridView" runat="server" AutoGenerateColumns="False"/>
    <Columns>
    <asp:BoundField DataField="name" HeaderText="Name" ReadOnly="True" />      
    <asp:BoundField HeaderText="Out-Time" />
    <asp:ButtonField ButtonType="Button" CommandName="Select" Text="Button" />
    </Columns>
    I want the second column(out-time) to be filled with current time on the button click in the third column which has to persist till the page is closed. Please gimme an idea. I will appreciate any help.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Suggest binding gridview to the datasource of your choice in the button click event. HTH.

    Comment

    Working...