Data Bind()I have edited my code in the question with the change what you asked me to do. When I debug the program : the txt1,txt2,txt3 is null. Help me please, while am in the urge of getting rid of this issue.I think it is not holding the value that i entered in the Grid. Thank you Your column headings or SQL field names will automatically be declared as variables.
before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).
Add(New Data Column("Col1_PH", Get Type(String))) dt.
string connetion String = "YOUR_CONSTR" ; string upd Stmt = "UPDATE Quantity set [email protected]_pro4, [email protected]_pro5, [email protected]_profile5 " "where [email protected] Name"; using (Sql Connection cnn = new Sql Connection(connetion String)) I don't see any instance of Sql Connection created!?
Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.
Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.
Add(New Data Column("Col1_VL", Get Type(String))) dt.