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 16289how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is benifit in qtp
13 45097How 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 8902Suppose 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 10096In 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 8914Post New Mind Tree Interview Questions
Tell me what are the correct and the most two common way to start and finish a php block of code?
What would be the entry at the time of Generating Tution Fee Challan for Advance fees. (e.g In the Month of April, Fees of June and July in being asked to pay by school to their students?,
What is the protocol used in Network layer?
Why is php so popular?
What are the different types of database management systems?
pls send me mahagenco previous entrance exam question papers
How does AI enhance customer service chatbots for improved user experience?
How many styles for there in script?
Why join is faster than subquery?
how many running meters in one kilogram of 4mm pvc coated chainlink fencing
I am doing 3rd year mechanical engineering. I want to place in good mechanical engineering core company. So please guide me how to prepare for interviews, and what can i do for placed in good company?
What is android version 7.0 called?
what will happen if synchronous machine rotor fed from single phase ac supply
What is percentage reserved.
How you would be an asset to this organization?