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 13847

Post New Mind Tree ADO.NET Interview Questions




Mind Tree ADO.NET Interview Questions


Un-Answered Questions

which are the member types which seu supports?

170


Name the sheet metal hand tools?

140


Which oops concept exposes only necessary information to the calling functions?

132


What does the 400 mhz signify in a ram specification?

116


How to implement interfaces in Scala?

3






What is the upside of Spark apathetic assessment?

3


What is a uwp game?

60


Explain audit?

114


How do I secure my blog?

10


what is granularity,what type of granularity we will take in fact tables either lowlevel or highlevel,if two tables having same granularity that is posiable or not

1394


Why to configure Import server in SAP HANA ?

16


What are the types in adjuvants?

52


What do you mean by dependency injection and how does it work?

14


What is routing in codeigniter?

44


What is the usage of clientbin folder?

1