How do I put a gridview row 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.
You have to use asp:TemplateField for TaskName , DueDate and button. Then on Rowcommand event u can use findcontrol property to change the value.
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.
Set the EditIndex property to the appropriate row and then ReBind the GridVIew again to it's DataSource.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With