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

How to reset currentcell to (0,0) in radgridview

1 Answer 221 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 06 Apr 2018, 10:43 AM

Currently, i am working on current cell in radgridview to reset to 0 row and 0 column.

 

Thanks,

Amit Kumar Kulha

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 10 Apr 2018, 01:25 PM
Hello Amit,

Can you please check the Set current cell article and let me know if this is what you are looking for? Basically, you can set the CurrentCellInfo property of RadGridView. To set the current cell to Row 0, Column 0, you can pass the first item in the Items collection and the first column.
var firstColumn = radGridView.Columns.OfType<GridViewColumn>().FirstOrDefault(x => x.DisplayIndex == 0);
radGridView.CurrentCellInfo = new Telerik.Windows.Controls.GridViewCellInfo(radGridView.Items[0], firstColumn);

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Amit
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or