What are the differences between RAW, AUTO and Explicit modes in retrieving data from SQL Server in XML format?
1 20248How 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 16044Post New TCS ADO.NET Interview Questions
design of IGBT firing circuit for 11KV
What are constants?
Explain the advantages of inheritance.
Does gmail have an app for windows 10?
what is "goodwill" reserve and surplus and reserve with example
What do two colons mean in php?
FULL FORM OF NASDAQ?
What is an anecdote and give examples?
How do I view a view in sql?
What are the frameworks available in rc?
What is sub-query in sql server?
What is your strategy and process for appealing a denied claim? : insurance health
Who invented semaphore?
What Are The Differences Between Blue Prism And Uipath?
List the abstract operations in the set?