'hide all of the panel... Public Sub bikinPanjangNol() Me.PanelDataBuku.Visible = False Me.PanelDataKaryawan.Visible = False Me.PanelDataMahasiswa.Visible = False End Sub'then show the panel when radribbon image click.... Private Sub TombolDataBuku_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TombolDataBuku.Click bikinPanjangNol() PanelDataBuku.Visible = True 'Me.PanelDataBuku.BringToFront() End Sub Private Sub tblDataMahasiswa_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tblDataMahasiswa.Click bikinPanjangNol() PanelDataMahasiswa.Visible = True Me.PanelDataMahasiswa.BringToFront() End Subvoid gridPositionen_CellFormatting(object sender, CellFormattingEventArgs e){
if (e.CellElement.ColumnInfo is GridViewDataColumn && ((GridViewDataColumn)e.CellElement.ColumnInfo).Name == "Me_Dropdown") { if (e.CellElement.Children.Count > 0 || e.CellElement.RowIndex<0)//the comboxbox is already added to cell return; //NEVER GETS HERE !!!! e.CellElement.RowIndex is always -1 RadComboBoxElement element = new RadComboBoxElement(); e.CellElement.Children.Add(element);....Hello,
I have a hierarchical grid with about 8000 rows. Based on user interaction I have to update values of specific cell, which I do by looping through the selected rows. There is a conditional formatting on the specific cell which changes the background depending on the value.
My problem is the following ; if I use the following statement it takes too long :
foreach (GridViewRowInfo row in this.radGridView1.SelectedRows) { row.Cells["MY_CELL"].Value = "newValue"; }Now if I use DeferRefresh() the speed is drastically improved, but the grid scrolls back all the way to the top when it is done :
using (this.radGridView1.DeferRefresh()) { foreach (GridViewRowInfo row in this.radGridView1.SelectedRows) { row.Cells["MY_CELL"].Value = "newValue"; } }I don't know if it is normal behavior, or if there is a way to avoid scrolling back all the way to the top AND keeping the same run time I have with DeferRefresh().
EDIT : I also tried using BeginUpdate() and EndUpdate() which result in the same scrolling behavior.
Thank you for your help !