Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Mind Tree ADO.NET Interview Questions
Questions Answers Views Company eMail

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();

2 14633

Post New Mind Tree ADO.NET Interview Questions


Mind Tree ADO.NET Interview Questions


Un-Answered Questions

How do we do testing in tableau?

87


Explain Active power,reactive power,how its related to each other , & inductive ,capacitive.

1306


Can you please explain the difference between parent() and parents() methods in jquery? : jquery mobile

305


What is sessionfactory in hibernate?

91


Tell me is it possible to remove the html tags from data?

401






Explain the extern storage classes in c++.

418


What is OOP Language?

476


Is struts 1 still supported?

376


Diff b/w Health care domain and Banking Domain?

4086


What can you contribute to Pizza Express?

533


What is DevOps culture?

3


describe one of your memorable day? how is education useful for any body?

1822


How to give face effect in jquery?

343


What is a fall back class?

826


Why should you be preferred over others?

533