Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i dont know how to 1st row enable and 2nd row disable in gridview using asp.net behind vb code
someone help me
Posted

1 solution

Try this

c#
C#
if (GridView1.Rows.Count >= 2)
           {
               GridView1.Rows[0].Enabled = true;
               GridView1.Rows[1].Enabled = false;
           }



vb

VB
If (GridView1.Rows.Count >= 2) Then
    GridView1.Rows(0).Enabled = true
    GridView1.Rows(1).Enabled = false
End If
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900