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.Controls; 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 13847
which are the member types which seu supports?
Name the sheet metal hand tools?
Which oops concept exposes only necessary information to the calling functions?
What does the 400 mhz signify in a ram specification?
How to implement interfaces in Scala?
What is the upside of Spark apathetic assessment?
What is a uwp game?
How do I secure my blog?
what is granularity,what type of granularity we will take in fact tables either lowlevel or highlevel,if two tables having same granularity that is posiable or not
Why to configure Import server in SAP HANA ?
What are the types in adjuvants?
What do you mean by dependency injection and how does it work?
What is routing in codeigniter?
What is the usage of clientbin folder?