Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: Updating of datagrid is not happening Pin
CHill6015-Dec-15 5:13
mveCHill6015-Dec-15 5:13 
GeneralRe: Updating of datagrid is not happening Pin
Member 1144944715-Dec-15 23:06
Member 1144944715-Dec-15 23:06 
GeneralRe: Updating of datagrid is not happening Pin
CHill6015-Dec-15 23:31
mveCHill6015-Dec-15 23:31 
GeneralRe: Updating of datagrid is not happening Pin
Member 1144944715-Dec-15 23:46
Member 1144944715-Dec-15 23:46 
GeneralRe: Updating of datagrid is not happening Pin
CHill6016-Dec-15 0:21
mveCHill6016-Dec-15 0:21 
GeneralRe: Updating of datagrid is not happening Pin
Member 1144944716-Dec-15 0:25
Member 1144944716-Dec-15 0:25 
Questionhow can i get Array sort index? Pin
smallkubi15-Dec-15 0:06
smallkubi15-Dec-15 0:06 
AnswerRe: how can i get Array sort index? Pin
OriginalGriff15-Dec-15 1:09
mveOriginalGriff15-Dec-15 1:09 
There is no built in method that will do that for you - the index to the previous array is what causes the problem - and you can't "retrospectively" find it because in the event of duplicates, you don;t know which value to use.

What I would probably do is package the value you want to sort into a struct together with it's original index and sort that, using a comparator that looked only at the values.
The resulting sorted info would include the original array index, and it would be pretty trivial to split them back up if you needed to.
C#
public struct sortable
   {
   double value;
   int index;
   }

Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

AnswerRe: how can i get Array sort index? Pin
harold aptroot15-Dec-15 1:49
harold aptroot15-Dec-15 1:49 
GeneralRe: how can i get Array sort index? Pin
smallkubi15-Dec-15 2:48
smallkubi15-Dec-15 2:48 
GeneralRe: how can i get Array sort index? Pin
harold aptroot15-Dec-15 3:19
harold aptroot15-Dec-15 3:19 
GeneralRe: how can i get Array sort index? Pin
smallkubi15-Dec-15 4:16
smallkubi15-Dec-15 4:16 
AnswerRe: how can i get Array sort index? Pin
BillWoodruff15-Dec-15 4:52
professionalBillWoodruff15-Dec-15 4:52 
Questionhow to improve paint() speed? Pin
smallkubi14-Dec-15 19:26
smallkubi14-Dec-15 19:26 
AnswerRe: how to improve paint() speed? Pin
BillWoodruff14-Dec-15 21:44
professionalBillWoodruff14-Dec-15 21:44 
GeneralRe: how to improve paint() speed? Pin
smallkubi15-Dec-15 0:03
smallkubi15-Dec-15 0:03 
Questionc# problem with combobox in form opened in panel Pin
Member 1182236414-Dec-15 5:27
Member 1182236414-Dec-15 5:27 
AnswerRe: c# problem with combobox in form opened in panel Pin
Simon_Whale14-Dec-15 5:37
Simon_Whale14-Dec-15 5:37 
GeneralRe: c# problem with combobox in form opened in panel Pin
Member 1182236414-Dec-15 5:47
Member 1182236414-Dec-15 5:47 
GeneralRe: c# problem with combobox in form opened in panel Pin
Simon_Whale14-Dec-15 5:51
Simon_Whale14-Dec-15 5:51 
GeneralRe: c# problem with combobox in form opened in panel Pin
Member 1182236414-Dec-15 5:56
Member 1182236414-Dec-15 5:56 
GeneralRe: c# problem with combobox in form opened in panel Pin
Simon_Whale14-Dec-15 5:57
Simon_Whale14-Dec-15 5:57 
GeneralRe: c# problem with combobox in form opened in panel Pin
Member 1182236414-Dec-15 6:04
Member 1182236414-Dec-15 6:04 
GeneralRe: c# problem with combobox in form opened in panel Pin
Eddy Vluggen14-Dec-15 6:13
professionalEddy Vluggen14-Dec-15 6:13 
GeneralRe: c# problem with combobox in form opened in panel Pin
Simon_Whale14-Dec-15 6:16
Simon_Whale14-Dec-15 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.