היי אנשים 
רציתי לטפל באירוע של ROWUPDATING ונתקעתי בלקחת את הפרמטרים מהTEXTBOXים בGRIDVIEW לאחר לחיצת הEDIT.עשיתי כך-
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { //try //{ string pic = GridView1.Rows.Cells.Text; int id = int.Parse(GridView1.Rows.Cells.Text); string name = GridView1.Rows.Cells.Text; string category = GridView1.Rows.Cells.Text; int amount = int.Parse(GridView1.Rows.Cells.Text); double price = int.Parse(GridView1.Rows.Cells.Text); string details = GridView1.Rows.Cells.Text; localhost.ServiceMovies sm = new localhost.ServiceMovies(); sm.UpdateItem(id, name, amount, price, pic, details, category); //get back to normal gridview( no editing mode) GridView1.EditIndex = -1; BindGV(); //} //catch (Exception ex) //{ // Label1.ForeColor = Color.Red; // Label1.Text = "חלה שגיאה בעדכון: \n " + ex.Message; //} }
|
אך כל השליפות GridView1.Rows.Cells לא מאפשרות לי לגשת למידע שהוקלד בTEXTBOXים..
עזרה בבקשה? 

