Link to home
Start Free TrialLog in
Avatar of Takeoutdinner
Takeoutdinner

asked on

Select Gridview for Formview Display

Hi experts,

I have Gridview and Formview.
When I select Gridview Row, it displays its Formview.
Here I have 10 rows in Gridview. Until I select any row of Gridview, Formview doesn't display.
I want to select first row as default when I enter this screen. How can I do it?

Thanks,
Avatar of arhame
arhame
Flag of United States of America image

Something similiar to the following would work.


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        GridView1.SelectedIndex = 1
    End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of arhame
arhame
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Takeoutdinner
Takeoutdinner

ASKER

Thanks arthame,
This is the right solution for me.
God bless you!