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'm sure I'm missing something basic here but I have a GridControl in which I need to move the last column to being the first column.
I thought that I could just drag and drop the column in the design editor to its new place but the control interprets the action as an add row request.
so, given these columns in my grid at design-time:
+---+---+---+ |_1_|_2_|_3_|
I want to end up with:
+---+---+---+ |_3_|_2_|_1_|
Is there a trick to doing this simply or do I have to redefine the column properties for the two columns I want to switch?
I'm sure this is a doh! moment but I'm lost. If needed, the version I am using is 4.201.0.37
ADAdministrator Syncfusion Team January 9, 2007 08:22 PM UTC
Try this.
At Design Time, right-click the grid and choose the Edit command (or click the Edit verb under the propertygrid).
When the intaractive design window opens, click the column header to select the column you want to move. Then mousedown on the selected column header and drag it to th enew location.
This assumes that the grid.AllowSelections flag includes Columns and the grid.AllowdragSelectedCols is true. (If these properties are not true in your application, you can temporarily set them at design time to allow the moving of this column).
ADAdministrator Syncfusion Team January 9, 2007 08:33 PM UTC
Thanks Clay,
I had the AllowDragSelectedCols Property property set to false (or rather, I guess that's the default behavior, which makes sense). Once I set that, I was able to do the reordering.