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 14999how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is benifit in qtp
13 40260How 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 7718Suppose 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 8252In 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 8013Post New Mind Tree Interview Questions
Distinguish between system.string and system.text.stringbuilder classes?
How do you upgrade pip?
What is redolog file? Path?
please tell me the name and url path for type-4 driver ?
What is oledb driver?
how require to interprit the method precision data of hptlc?
I'm paid a salary. Am I exempt from overtime pay?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What are spring beans?
What is the ariba business network?
What does the 'ceci:cics' transactions do?
What is auto invoicing? Explain : oracle accounts receivable
What is this pointer in oop?
What is the entry in oracle apps ap,ar,gl for following transations1.one pipe purchase at rs.1002.one pipe sales at rs.150
What differences are there between a semaphore wait signal and a condition variable wait signal?