This is a migrated thread and some comments may be shown as answers.

How to select the 1st row in grid on page load and bind the second grid

0 Answers 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dorababu
Top achievements
Rank 1
Dorababu asked on 03 Jul 2012, 01:05 PM
I am doing a task Master-Detail, for this I have taken two grids where I will initially bind a grid view at this point I would like to select the first row and display the corresponding details in the second grid view. Like that when I select the later I would like to bind the corresponding details.

Sample data in my database

Table1

EmpID  FedID
   1        1234
   2         6546

Table2 

EmpID  Name

   1        ABCD
   2         EFGH


Initially I would like to load the first record details in the second grid view and show .

Means on Initial page load I will show the Table1 data in gridview1 immediately I would like to show the second grid view as follows

EmpID    Name
  1           ABCD

I would like to achieve this from server side code

This is the one I would like to achieve http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx 
from server side code



No answers yet. Maybe you can help?

Tags
Grid
Asked by
Dorababu
Top achievements
Rank 1
Share this question
or