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 16201how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is benifit in qtp
13 44708How 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 8805Suppose 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 9907In 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 8822Post New Mind Tree Interview Questions
Do you know what is the way in which the html can be used to form elements?
What is an iframe?
IF XXX GOT AN ORDER FROM APTRANSCO AS WORKS CONTRACT NOW XXX PLACED AN ORDER TO YYY THAT TO SUPPLY 50% OF THE MATERIAL IN ORDER. NOW WHAT IS THE SALES TAX RATE HAVE TO CHARGE BY YYY TO XXX. NOW MY DOUGHT IS YYY IS NOT SUPPLING THE GOODS TO APTRANSCO, HE CANT CHARGE 4%, IF POSSIBLE PLEASE TELL ME THT HOW CAN HE .
Can multiple clients write into a Hadoop HDFS file concurrently?
What is the use of xmlserializer?
Why is it necessary to capitalize component names?
How can u pass the control from step 4 to step 2 in activity, if possible how can achieve?
What are orm integration modules?
What is the purpose of @action annotation?
Deposited Rs 25000 in Canara Bank of ABC co towards dealership deposit thru our SBH Bank Pass necessary entry
What is the rule of six for powerpoint?
Describe different methods for model interpretability.
What is field Set?
What is Dilation and Erosion?
How to create the log file?