Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Putting a gridview row in edit mode programmatically

How do I put a gridview row in edit mode programmatically?

like image 291
Abdu Avatar asked Oct 16 '08 00:10

Abdu


People also ask

How do I put GridView in edit mode programmatically?

Set the EditIndex property to the appropriate row and then ReBind the GridVIew again to it's DataSource. Hope this helps. Show activity on this post. Bind data will populate the GridView with the data.

How to Edit Update specific cell in GridView asp net c#?

You have to use asp:TemplateField for TaskName , DueDate and button. Then on Rowcommand event u can use findcontrol property to change the value.

How to Update GridView cell value in asp net c#?

You just need to check the value entered in textbox as Admission no present in Grid records? Then just the loop through the GridViewRow records from GridView1. Rows and match the txtRegNo with each row lbl_AdNo value.


1 Answers

Set the EditIndex property to the appropriate row and then ReBind the GridVIew again to it's DataSource.

Hope this helps.

like image 128
vmarquez Avatar answered Oct 03 '22 22:10

vmarquez