How to create dynamic gridview?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More ADO.NET Interview Questions

What is the Magic Tables in Sqlserver2000?

7 Answers   IBM, SQL Star,


What do you know about ado.net's methods?

0 Answers  


Is it possible to load multiple tables in a Dataset?

0 Answers  


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 Answers   Mind Tree, TCS,


What does connection string consists of ?

4 Answers   Digital GlobalSoft,






What is execute reader in ado.net?

0 Answers  


what is trigger?

8 Answers   Microsoft, Precept Technology,


What is the significance of CommandBehavior.CloseConnection ?

0 Answers   NA,


How to maintain the relation between two tables in ADO.NET?

0 Answers   Petranics Solutions,


Where does ADO.NET and XML web services come in the architecture ?

1 Answers   IBM, TCS,


What is disconnected scenario in entity framework?

0 Answers  


Explain the dataadapter class in ado.net?

0 Answers  


Categories