Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
No Answer is Posted For this Question
Be the First to Post Answer
What are the ado.net connection pooling parameters?
What are the three Objects of ADO.
What is the key feature of ADO.NET compared to ADO ?
Define data access layer?
Name which operations can you not perform on an ado.net dataset?
Which is the feature of ado.net?
What is ado.net and its architecture?
What are the different namespaces used in the project to connect the database?
What is serialization and de-serialization in .net? How can we serialize the dataset object?
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();
What is meant by ‘transaction’ in a database and what are the ‘properties of transaction’?
What is datacolumn and how it is used?