Link to home
Start Free TrialLog in
Avatar of sammySeltzer
sammySeltzerFlag for United States of America

asked on

Do you know how I can insert date in gridview after checkbox is checked?

Greetings mates,

We have checkbox in gridview where a user can check one or more boxes.

What we would like to do is to show current date for any and all checkbox(es) checked.

Can someone please help with inserting dates into gridview after a checkbox is checked or checkboxes are checked?

Here is what I have:




        For Each c As GridViewRow In gridView1.Rows
            If CType(c.Cells(0).FindControl("myrec"), CheckBox).Checked Then

                '******Need to insert today's date here whenever a checkbox is checked*****                       

End If
        Next

Open in new window


Thanks a lot in advance.
SOLUTION
Avatar of Obadiah Christopher
Obadiah Christopher
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sammySeltzer

ASKER

Well, it doesn't really matter if I use TextBox or label.

What is important is that I want this date inserted only AFTER a checkbox is checked.

In other words, if no checkboxes are checked, the date column should be blank.

Hope this is clearer.

Thanks
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry for late response on this but I have since resolved it.