[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • Last Modified:

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,
0
Takeoutdinner
Asked:
Takeoutdinner
  • 2
1 Solution
 
arhameCommented:
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

0
 
arhameCommented:
Or rather, Gridview1.SelectedIndex = 0 for the first row.
0
 
TakeoutdinnerAuthor Commented:
Thanks arthame,
This is the right solution for me.
God bless you!
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now