The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi!
I have a datasource representation on a form, using different controls (a treeview and a GridDataBoundGrid).
What I would like to know is how to select a Row in the grid based on the selected node in the tree and ensure it is visible.
Thank you!
ADAdministrator Syncfusion Team February 24, 2003 09:03 AM UTC
Hi Serban,
I assume that when you click in the tree at that time you know the record position in the underlying datasource.
Based on that information you can get the row index with
int rowIndex = grid.Binder.ListManagerPositionToRowIndex(record);
and then scroll this row into view
grid.ScrollCellInView(rowIndex, 1);
- or -
move the current cell to that row:
grid.CurrentCell.MoveTo(rowIndex, 1);
Stefan
SASerban Alexandru FlorianFebruary 24, 2003 01:39 PM UTC
Thank you !
SSSilviu SauleaJune 6, 2003 07:49 AM UTC
Hei Alexandre please write to me at los_calibra@yahoo.com -
in romaneste - ce ai inteles din explicatie! :)
Daca ai YM contacteaza-ma sunt online!
Multumesc anticipat!