how to show dialogbox when click on datagrid template column?

Discussion in 'ASP .Net Web Controls' started by chandu, Oct 30, 2006.

  1. chandu

    chandu Guest

    hai,
    i am using datagrid template column ,it is text box column.
    if i put any thing in that cell and when i leave that cell i need to show a
    dialog box with that enterd string.
    please can any one give answer as early as possible.
    chandu, Oct 30, 2006
    #1
    1. Advertising

  2. chandu

    marss Guest

    chandu напиÑав:
    > hai,
    > i am using datagrid template column ,it is text box column.
    > if i put any thing in that cell and when i leave that cell i need to showa
    > dialog box with that enterd string.
    > please can any one give answer as early as possible.


    Add client-side function call in the grid item data bound event handler

    private void DataGrid1_ItemDataBound(object sender,
    System.Web.UI.WebControls.DataGridItemEventArgs e)
    {
    TextBox TextBox1 = e.Item.FindControl("TextBox1") as TextBox;
    if (TextBox1 != null)
    TextBox1.Attributes["onblur"] = "alert(this.value);";
    }


    "TextBox1" is ID of Texbox
    marss, Oct 30, 2006
    #2
    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. Dexter
    Replies:
    1
    Views:
    416
    Eliyahu Goldin
    Jan 18, 2005
  2. Ken Varn
    Replies:
    1
    Views:
    974
    Ken Varn
    Aug 19, 2005
  3. Charleees
    Replies:
    2
    Views:
    8,203
    Eliyahu Goldin
    Jun 20, 2006
  4. Ravichandran Mahalingam

    Bound Column or Template Column (w dAdapater?) in DataGrid

    Ravichandran Mahalingam, Jan 9, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    219
    Ravichandran Mahalingam
    Jan 9, 2004
  5. C

    Datagrid on Dialogbox

    C, Jan 14, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    122
Loading...

Share This Page