What is the use of Dataview?
No Answer is Posted For this Question
Be the First to Post Answer
Data reader read and forward only, how is it possible to get 2 tables of data at a time?
Which parameter of ConnectionString is used to specify the name of the database?
How do you merge two datasets into the third dataset in a simple manner?
What do you know about ado.net's objects?
How to find the count of records in a dataset?
can we change the data in dataset? if yes what is the process?
Which is faster ado.net or linq?
Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
Describe ado.net object model in detail.
What is the usage of the dataset object in ado.net?
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();