or
Hi,
I am working on the hierarchical grid and displaying data using self references.
My requirement is when i refresh the grid then the selectd row should be selected and the scroll bar
position should be at the same location but now when i refresh the scroll bar is moved to top of the grid.
could you please help me on the above requirement?
Thanks & Regards
Muralidhar Dasari
Code Snippet for refresh:- using (radGridView1.DeferRefresh()) { this.radGridView1.TableElement.Update(GridUINotifyAction.DataChanged); this.radGridView1.TableElement.Update(GridUINotifyAction.StateChanged);
}foreach (Telerik.WinControls.StyleRepository repository in theme.Repositories){ if (repository.ItemType == "Image") { foreach (Telerik.WinControls.PropertySetting setting in repository.Settings) { if (setting.Name == "Image") { Bitmap bmp = GetBitMap(repository.Key); setting.Value = bmp } } }}this.radGridControlSelection.BeginInit();this.radGridControlSelection.DataSource = this.dataList; HtmlViewDefinition view = new HtmlViewDefinition();this.radGridControlSelection.ViewDefinition = view;view.RowTemplate.Rows.Add(new RowDefinition());view.RowTemplate.Rows.Add(new RowDefinition());view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Name")); view.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Surname"));view.RowTemplate.Rows[1].Cells.Add(new CellDefinition("Gender"));view.RowTemplate.Rows[1].Cells[0].ColSpan = 2;this.AsignTitlesToRadGridControlSelection();
MultiSelect = true;
MultiSelect = true;
EnableLassoSelection = true;


