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

SelectedIndex

2 Answers 137 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Letoir
Top achievements
Rank 1
Letoir asked on 03 Nov 2011, 01:38 PM
Hi

I am making a WPF application where i use the Microsoft Kinect as a input device.
So if i want to acces my Gridview, i will need buttons to select the row selection to go up and down.
     1.Since i have a Click system with my Kinect device, i only need a system to select the rows?
     2. When i select a row, i want a pop-up window with the details of the row, like NAME, EMAIL, SUBJECT and TEXT.
                - I  have no idea how to do this?            

How can i do this, I found things on your forum that includes RECORDS, but since u dont use them anymore, im struggling to find my way.
This is what i got

 

private void Button_Click(object sender, RoutedEventArgs e)
{
    int i = this.radGridView.Records.IndexOf(this.radGridView.SelectedRecord);
    int nextCurrentIndex = i + 1;
 
    if (nextCurrentIndex < this.radGridView.Records.Count)
    {
        Record nextCurrentRecord = this.radGridView.Records[nextCurrentIndex];
        nextCurrentRecord.IsSelected = true;
    }
}

2 Answers, 1 is accepted

Sort by
0
Letoir
Top achievements
Rank 1
answered on 03 Nov 2011, 04:22 PM
So how can i scrol down in the selected datagrid?
just by clicking, a button,  i want the row to go down, to the next row.
thx
0
Pavel Pavlov
Telerik team
answered on 07 Nov 2011, 05:55 PM
Hi Letoir,

You can use somthing like :
gridView.ChildrenOfType<GridViewScrollViewer>().First().LineDown();


Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Letoir
Top achievements
Rank 1
Answers by
Letoir
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or