Comments (2)
This is not a feature that can be implemented easily.
Moving the data of a column can be straightforward, but if you have merged cells or borders, there should be processes for how to split or combine merged cells, and how to handle the borders. Additionally, if you have formulas, you need to consider how the formula references change.
We may consider implementing this feature in future versions, but it may take some time.
from reogrid.
@hs205118
I agree with @jingwood. It can get very complicated depending on the existing structure of the Grid.
Here is my suggestion how I would implement Column Reorder without any changes to the control itself.
1- Hook an event handler to the Reogrid.Mouseup and watch for right click
2- On Mouse Right Click event, open your own Form/Control that has a basic Listview or Listbox with the current column names. Enable Drag & Drop for reorder on your own control. Example : https://stackoverflow.com/questions/805165/reorder-a-winforms-listbox-using-drag-and-drop. Keep track of internal Column display indexes when closing your Form.
3- Rebuild your Reogrid contents from the underlying data with own code, under consideration of DisplayIndexes of the columns. The Column headers in Reogrid allow renaming, so to the user it will look like the column position changed. You need a list or dictionary object that keeps track of and maps Datacolumn vs DisplayIndex.
from reogrid.
Related Issues (20)
- While loading a particualr Excel sheet, in the ReoGrid.Load Function exceptoin is thrown
- how to get cell with column or row header text?
- How to extract the exact value?
- How to add a column to the left of the Column Header, How to add rows on the RowHeader HOT 1
- Context menus on ReoGrid WPF
- WinUI 3 Support
- performance issue HOT 3
- dropdownlist item missing while save/load rgf file
- Does ReoGrid have function to show cell note?
- How to implement CheckBox cell type for entire column. HOT 6
- Getting Error - Exception thrown: 'System.ArgumentOutOfRangeException' in unvell.ReoGrid.dll HOT 5
- Hello, just want to ask...
- data exception HOT 1
- CSV file loading issue HOT 1
- Are there any plans to support Avalonia? HOT 2
- About the sheet Name display in the lower left corner HOT 4
- when i use ReoGridControl.Load() method to load excel Templates. error occurred: System.ArgumentOutOfRangeException:“capacity was less than the current size. Arg_ParamName_Name” HOT 1
- How to know the coordinates of "Graphics. Point" in "RangePosition" or "CellPosition" HOT 2
- about images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reogrid.