What is a dynaset in access?
No Answer is Posted For this Question
Be the First to Post Answer
What is ADO .NET and what is difference between ADO and ADO.NET?
What is linq and entity framework?
How to store data in memory?
How to read data with the sqldatareader ?
What are all the commands used with Data Adapter?
What is Dataset Object?
What is reference by value how does it works in .net?
how do u connect ado.net to sql server
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();
Explain sqlconnection object?
how we can fire event in databound coulm in datagfrid withot using button?
What are the two fundamental objects in ADO.NET?