How To Update A Column In A DataGrid Using C#.NET? I am getting InvalidCastException as (Specified cast is not valid) while updating 2nd column in a datagrid? Id,firstname,lastname are the three columns of my datagrid respectively. I wanted to edit the second column(lastname) and update it. I did the following code in DataGrid's updatecommand(),but failed to update ! Int varid=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; TextBox lnm=(TextBox)e.Item.Cells[2].Controls[0]; string str=lnm.Text ; SqlCommand cmd=new SqlCommand("update customer set lastname='" + str + "' where id=" + varid + "",con); cmd.ExecuteNonQuery(); DataGrid1.EditItemIndex=- 1; DataGrid1.DataBind();
2 16045how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is benifit in qtp
13 44141How do you review the test cases which are prepared by your team member. answer is: using traceability matrix, matching testcases with the requirements. He again asked - assume that all the test cases are matched with the requirements, then what do you do, how do you proceed in this case..
2 8650Suppose product is to be delivered on urgent basis.There is no time to test on all OS and Browseres.We have time to execute atlest in one combination of OS and browser.Which one do you prefer and why?
5 9656In V model how will you explain all testing types (unit,integration,sysetem,acceptance testing) as all these parallel testing.E.g.Once the design phase is completed how will you do the integration teting over here as tester doesnt know much about design.Briefly justify the V-model?
1 8709Post New Mind Tree Interview Questions
What is action in c# 3.5?
What is the use of "enctype" attribute in a html form?
Can we run ejb in tomcat?
Explain the use of spring container.
Difference between dependencies and dev dependencies?
How to reverse the string using SQL?
When have you worked in a bad team? Which steps did you take to make it better?
What relationship is between a process, application domain, and application?
Give me the examples of Columnar database ?
What is a dangling pointer in c++?
How is solution annealing carried out? What type of furnace is required? Does one need to be heat in a salt bath?
why we are useing plastic under the lean concrete?and whts the advantage?
How would you create a controller for the subject?
What is the function of operational assertions in uml?
Giving fire call access and extending fire call access by using VIRSA’s VFAT tool.can any one brief this