Which method is used to sort the data in ADO.Net?
No Answer is Posted For this Question
Be the First to Post Answer
What are the ADO.NET Controls?
What is executenonquery ado.net?
What is an example of ordinal data?
What is the provider and namespaces being used to access oracle database?
What is a serialized object?
What is microsoft ado.net?
What is the use of SqlCommandBuilder?
How does entity framework work?
Which property is used to check whether a DataReader is closed or opened?
I am fresh graduate, trained in C# .net. How do i answer when interview ask me , Where do you see yourself within 5 years from now?
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();
How to maintain the relation between two tables in ADO.NET?
0 Answers Petranics Solutions,