doubt on gridview textchanged event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bala venkata siva ram kum
    New Member
    • May 2010
    • 15

    #1

    doubt on gridview textchanged event

    hi friends,
    this is balu.while i am working with gridview i am facing this problem.this code is running successfully in gridview edit event.but when i used the same code in textboxtext changed event.it is giving error.pls send me the solution.
    Code:
     protected void TextBox2_TextChanged(object sender, EventArgs e)
        {
            foreach (GridViewRow row in GridView1.Rows)
            {
                string txtText = ((TextBox)((GridView)sender).Rows[row.RowIndex].FindControl("TextBox2")).Text;
               
            }
        }
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    It would help us to understand your problem better if you posted the error message that you are seeing.

    -Frinny

    Comment

    Working...