Please write this code at end of the code Gridview1. EditIndex-1 not sure EditIndex or Edititemindex please try it may be help you.
Up vote 0 down vote favorite share g+ share fb share tw.
On the page load there will be gridview with a default row....there is a button with a + sign at the bottom...on the button click I want to create a new rows in the grid..before that I need to make sure that all fields have values. But I am getting null values.. My code is: TextBox name_value = ((TextBox)Gridview1. Rows0.
FindControl("TextBox1")); TextBox age_value = ((TextBox)Gridview1. Rows0. FindControl("TextBox2")); DropDownList sex_value = ((DropDownList)Gridview1.
Rows0. FindControl("DropDownList1")); DropDownList berth_value = ((DropDownList)Gridview1. Rows0.
FindControl("DropDownList2")); Any help will be appreciated. C# asp.net link|improve this question edited Jan 20 at 10:21 asked Jan 20 at 9:47sun375 58% accept rate.
If so then tell us, that validation will happen in which event . – Bibhu Jan 20 at 9:58.
Try using a condition if(name_value. Text! ="" && age_value.
Text && sex_value. Text && berth_value. Text) { //action }.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.