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 14166

Post New Mind Tree ADO.NET Interview Questions




Mind Tree ADO.NET Interview Questions


Un-Answered Questions

Which country has the worlds most powerful tank?

289


What are plan versions used for?

255


Why to use method – lineto in canvas?

211


What are loading utilities?

204


Show the 2 types of comments in JSP.

241






What is difference between hashset and hashmap?

213


How can you create an object in vbscript?

284


Name some semantic states in sapui5?

1


What is microsoft access database engine 2010?

168


if cst sales and purchase is completed and we issue c form and received c form also.but in next month both sales and purchase are return. my question is how to pass reverse entry when c forms issue/receive. how it cst return also.

2157


What are living reservoirs?

215


What are the different installation modes for SAP NetWeaver installation?

247


Explain all the C++ concepts using examples.

334


Why people hate cursor?

266


How do you start a new line in java?

199