Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: Streaming live audio from the internet and converting it to mp3 Pin
User 46247823-Mar-08 0:34
User 46247823-Mar-08 0:34 
GeneralRe: Streaming live audio from the internet and converting it to mp3 Pin
ThetaClear23-Mar-08 2:16
ThetaClear23-Mar-08 2:16 
GeneralRe: Streaming live audio from the internet and converting it to mp3 Pin
User 46247823-Mar-08 13:03
User 46247823-Mar-08 13:03 
GeneralRe: Streaming live audio from the internet and converting it to mp3 Pin
ThetaClear23-Mar-08 22:39
ThetaClear23-Mar-08 22:39 
GeneralRe: Streaming live audio from the internet and converting it to mp3 Pin
User 46247824-Mar-08 7:15
User 46247824-Mar-08 7:15 
GeneralDatabinding to a Textbox through TransparentProxy Pin
User 46247822-Mar-08 23:30
User 46247822-Mar-08 23:30 
GeneralPermission based security Pin
gnjunge22-Mar-08 23:16
gnjunge22-Mar-08 23:16 
GeneralDisable automatic sorting in DGV Pin
baranils22-Mar-08 22:03
baranils22-Mar-08 22:03 
Hello

I have a big problem and don'tt know how to avoid it
basicly the problem is coming because I can't disable the automatic sort on a DataGridView (DGV)

1- I load a table with a query, on column (order) is sorted with ascending numeric values
2- The table is binded to a DGV
3- At this point I programaticaly renum the order column with a step 5 : 5, 10, 15, etc

It is OK

BUT if before to do the renum I sort the DGV on that column and immediately reset the property to notsortable, the automatic sort remain active

dgv_rit.Sort(dgv_rit.Columns["order1"], ListSortDirection.Ascending);
dgv_rit.Columns["order1"].SortMode = DataGridViewColumnSortMode.NotSortable;

So, for now nothing seems to be changed in the DGV because it was already sorted !
But if I renum now, everything goes wrong because the automatic sort is still active and each row I change is automaticaly sorted to another place !!!


Too bad !!
GeneralRe: Disable automatic sorting in DGV Pin
Xmen Real 23-Mar-08 4:21
professional Xmen Real 23-Mar-08 4:21 
GeneralRe: Disable automatic sorting in DGV Pin
baranils23-Mar-08 4:39
baranils23-Mar-08 4:39 
GeneralRe: Disable automatic sorting in DGV Pin
baranils23-Mar-08 11:17
baranils23-Mar-08 11:17 
GeneralRe: Disable automatic sorting in DGV Pin
Xmen Real 23-Mar-08 14:01
professional Xmen Real 23-Mar-08 14:01 
GeneralRe: Disable automatic sorting in DGV Pin
baranils23-Mar-08 20:54
baranils23-Mar-08 20:54 
GeneralRe: Disable automatic sorting in DGV Pin
baranils23-Mar-08 21:59
baranils23-Mar-08 21:59 
QuestionHow to use COM components in .net application Pin
mukkanti00722-Mar-08 21:20
mukkanti00722-Mar-08 21:20 
AnswerRe: How to use COM components in .net application Pin
sarvesh.upadhyay24-Mar-08 1:28
professionalsarvesh.upadhyay24-Mar-08 1:28 
Generalkeyboard to xbox controller Pin
sakirah22-Mar-08 16:17
sakirah22-Mar-08 16:17 
GeneralRe: keyboard to xbox controller Pin
User 665823-Mar-08 3:32
User 665823-Mar-08 3:32 
GeneralCurrent sorted row in DGV Pin
baranils22-Mar-08 10:54
baranils22-Mar-08 10:54 
GeneralRe: Current sorted row in DGV Pin
Luc Pattyn22-Mar-08 14:02
sitebuilderLuc Pattyn22-Mar-08 14:02 
QuestionAccess Environment Variables: C# Pin
Yasithl22-Mar-08 10:26
Yasithl22-Mar-08 10:26 
GeneralRe: Access Environment Variables: C# Pin
Giorgi Dalakishvili22-Mar-08 10:52
mentorGiorgi Dalakishvili22-Mar-08 10:52 
GeneralQuestion about how Sockets work Pin
Jordanwb22-Mar-08 9:30
Jordanwb22-Mar-08 9:30 
GeneralRe: Question about how Sockets work Pin
Jordanwb22-Mar-08 15:50
Jordanwb22-Mar-08 15:50 
GeneralRe: Question about how Sockets work Pin
Shy Agam23-Mar-08 9:57
Shy Agam23-Mar-08 9:57 

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.