How do I handle SelectionChanged event of a calendar in a data grid

Discussion in 'ASP .Net Web Controls' started by angel ko via .NET 247, Mar 18, 2005.

  1. I have two image buttons and a calendar control at a data grid. The calendar control was invisible initially. When the userclicks one of the image buttons, the calendar control will bedisplayed. I would like a selected date to be displayed on theedit box in a cell of the data grid right after the user selectsa date,. However, I have a trouble to catch the calendar?sSelectionChanged event in a data grid. The calendar control isstored in a ?Template Column?. I wish that I could catch theCalenar1_SelectionChanged(object sender, System.EventArgs e) asif this calendar control is outside of data grid.

    If I stored the calendar control outside of the data grid, Icould not catch the edit box?s handle by using((TextBox)e.Item.FindControl("txtAddFromDate")).Text. NOTE: e isdefined as DataGridCommandEventArgs.

    Calenar1_SelectionChanged(object sender, System.EventArgs e): eis defined as System.EventArgs.

    So, I don?t know how to handle this case. Would you pleasehelp?

    I would very appreciate if anybody could provide me a solution. Thanks.







    --------------------------------
    From: angel ko

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>IotvrrQW6UWvMlW4kVi8Mw==</Id>
     
    angel ko via .NET 247, Mar 18, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jimmy
    Replies:
    0
    Views:
    397
    Jimmy
    Feb 24, 2004
  2. Girish
    Replies:
    4
    Views:
    690
    Patrick.O.Ige
    Jul 19, 2005
  3. Carlos
    Replies:
    3
    Views:
    440
    Mark Rae
    Nov 1, 2006
  4. =?Utf-8?B?Tkg=?=

    calendar SelectionChanged

    =?Utf-8?B?Tkg=?=, Mar 20, 2007, in forum: ASP .Net
    Replies:
    24
    Views:
    3,482
    Mark Rae
    Mar 21, 2007
  5. Replies:
    0
    Views:
    316
Loading...

Share This Page