-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorder columns #1061
Reorder columns #1061
Conversation
Pulling changes from the main
Pulling changes from the main
Pulling changes from the main
Pulling changes from the sub branch
Pulling changes from the main
… can make it to work better because the current user controls become messy if the data has several columns
@dannyparsons though this dialog works am not contented Could we have another user control specifically for this purpose, where we can reorder by moving columns up and down, Something like below: |
Yes something to move columns up and down is definitely what we want. Attached is the dialog me and Roger came up with. There is just a data frame selector and then all the columns are shown in their current order. So we suggest a new user control that is just a grid that fills the control. The control can then have methods like fill grid, set read only/editable, hide/show the tabs etc. Quite a lot of dialogs will then use these controls for displaying lists in a grid. Do you want to create these two controls? |
Yes I would like to, but I have a questions. Why put it in form of a grid? I would prefer list view. |
Good question. I discussed with Roger and a list view seems sensible for the simple reordering of columns, data frames etc. So then it's just one user control with a list view and arrow buttons. |
Pulling changes from the main
Question, how do I TestOkEnabled with the new user control Reorder? @dannyparsons |
Good question. What we need is a function of the reorder control that On 20 March 2016 at 21:02, Polycarp Okock [email protected] wrote:
|
Updated it with new user control reorder |
@@ -145,7 +145,7 @@ Public Class ucrReorder | |||
Public Sub loadList() | |||
Dim dfTemp As CharacterMatrix | |||
Select Case strDataType | |||
Case "column" | |||
Case "all" | |||
If ucrDataFrameList IsNot Nothing AndAlso ucrDataFrameList.cboAvailableDataFrames.Text <> "" Then | |||
frmMain.clsRLink.clsEngine.Evaluate(ucrDataFrameList.cboAvailableDataFrames.SelectedItem & "=" & frmMain.clsRLink.strInstatDataObject & "$get_variables_metadata(data_name = " & Chr(34) & ucrDataFrameList.cboAvailableDataFrames.SelectedItem & Chr(34) & ", data_type = " & Chr(34) & strDataType & Chr(34) & ")[,1]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, you could use the get_column_names method in the Instat object. This just takes a single argument for the data_name.
Made the modifications. |
No description provided.