how to show dialogbox when click on datagrid template column?

C

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 show a
dialog box with that enterd string.
please can any one give answer as early as possible.
 
M

marss

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top