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. Advertisements

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. Joey Durham

    Filter Data Grid With calendar control

    Joey Durham, Jul 5, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    730
    David Waz...
    Jul 6, 2003
  2. Jimmy
    Replies:
    0
    Views:
    487
    Jimmy
    Feb 24, 2004
  3. =?Utf-8?B?SmltIEhlYXZleQ==?=

    Data Grid Event Fires Twice..

    =?Utf-8?B?SmltIEhlYXZleQ==?=, Jan 21, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    511
    =?Utf-8?B?SmltIEhlYXZleQ==?=
    Jan 21, 2005
  4. Girish
    Replies:
    4
    Views:
    978
    Patrick.O.Ige
    Jul 19, 2005
  5. JerryG
    Replies:
    0
    Views:
    572
    JerryG
    Dec 20, 2005
  6. Carlos
    Replies:
    3
    Views:
    577
    Mark Rae
    Nov 1, 2006
  7. =?Utf-8?B?Tkg=?=

    calendar SelectionChanged

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