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.
if usrs are allowed to move columns, by having the AllowDragSelectedCols = true;, and you are trying to repopulate the grid in real time, the populatevalues call does not automatically take into account the moved columns. Do i have to implement my own store of which column has moved from position a to b, and then i will not be able to call populatevalues on a row, but will have to do it on individual cells.
Trevor
ADAdministrator Syncfusion Team September 24, 2003 05:57 PM UTC
If you need to keep track of the original position that a column had before the user moved around columns a little trick is to assign the column number to the style.Tag for each column (e.g. each style in grid.ColumnStyles) at initialization time. Whenever you need the original column index of columns you can then just inspect the style.Tag value.
Stefan
TMTrevor MoodySeptember 25, 2003 05:40 AM UTC
>
> If you need to keep track of the original position that a column had before the user moved around columns a little trick is to assign the column number to the style.Tag for each column (e.g. each style in grid.ColumnStyles) at initialization time. Whenever you need the original column index of columns you can then just inspect the style.Tag value.
>
> Stefan
>
Stefan, thankas for that, nut in order to repopulate the grid, with columns that have been moved around, if only certain rows have changed, the only way to do this would be to populate each cell indivisually. I was hoping the Greid Framework would take care of this.
Can any one from Syncfusion comment on this.
Thanks
Trevor
ADAdministrator Syncfusion Team September 25, 2003 09:25 AM UTC
Yes, you will have to the population manually. Just loop through the cells and call SetCellInfo for each cell. That's also what PopulateValues does.
Don't use the grid indexer or ChangeCells since that would slow things down.
Stefan