Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
QuestionRemove system tray icon of a killed process Pin
hakanaktan1-Sep-05 2:35
hakanaktan1-Sep-05 2:35 
QuestionWaitForExit Pin
Loveday781-Sep-05 2:27
Loveday781-Sep-05 2:27 
AnswerRe: WaitForExit Pin
S. Senthil Kumar1-Sep-05 6:16
S. Senthil Kumar1-Sep-05 6:16 
GeneralRe: WaitForExit Pin
Loveday781-Sep-05 20:43
Loveday781-Sep-05 20:43 
GeneralRe: WaitForExit Pin
therealmccoy2-Sep-05 7:51
therealmccoy2-Sep-05 7:51 
QuestionCopying data from Oracle to Access Pin
oliver@GVA1-Sep-05 1:35
oliver@GVA1-Sep-05 1:35 
QuestionCombobox Tag Pin
PHDENG811-Sep-05 1:30
PHDENG811-Sep-05 1:30 
AnswerRe: Combobox Tag Pin
Mohamad Al Husseiny1-Sep-05 2:43
Mohamad Al Husseiny1-Sep-05 2:43 
GeneralRe: Combobox Tag Pin
PHDENG811-Sep-05 4:22
PHDENG811-Sep-05 4:22 
GeneralRe: Combobox Tag Pin
mav.northwind1-Sep-05 6:35
mav.northwind1-Sep-05 6:35 
GeneralRe: Combobox Tag Pin
Mohamad Al Husseiny1-Sep-05 8:16
Mohamad Al Husseiny1-Sep-05 8:16 
QuestionCurves and Angles Pin
suresh sahu1-Sep-05 1:22
suresh sahu1-Sep-05 1:22 
AnswerRe: Curves and Angles Pin
Andrew Kirillov1-Sep-05 3:09
Andrew Kirillov1-Sep-05 3:09 
GeneralRe: Curves and Angles Pin
Nageshwar Rao1-Sep-05 5:56
Nageshwar Rao1-Sep-05 5:56 
GeneralRe: Curves and Angles Pin
Anonymous1-Sep-05 5:56
Anonymous1-Sep-05 5:56 
QuestionInterbase databse Pin
Virendrak1-Sep-05 1:02
Virendrak1-Sep-05 1:02 
QuestionProblem in Viewing data from DataGrid Pin
Dhruvesh Brahmbhatt1-Sep-05 0:44
Dhruvesh Brahmbhatt1-Sep-05 0:44 
QuestionSorting a DataView by an int[] list Pin
thomasa31-Aug-05 21:52
thomasa31-Aug-05 21:52 
I have a DataView (dvUnsorted) and I want to sort it by the values in an integerlist(iSortedList), witch responds with the values in the Column "itemID" in dvUsorted.

My idëe is to create a new Column (colSort), and ad the apropiaded value of the items index
in that cell.
So if I have a int[] list = {4,2,66,7}
My dvUnsorted will look someting like this

itemID col1 col2
66 ..
2 ...
7 ..
4 ..

dvUnsorted with the added column "colSort" will lock something like this.

itemID col1 col2 colSort
66 .. 3
2 ... 2
7 .. 4
4 .. 1

and then I youst sort the dvUnsorted by
dvUnsorted.Sort = "colSort ASC";

My code locks something like this
<br />
private DataView dvSortedItems(int[] iSortedList, DataView dvUnsorted)<br />
{<br />
	dvUnsorted.Table.Columns.Add("colSort");<br />
	for(int i = 0; i < iSortedList.Length; i++)<br />
	{<br />
                // Here I need to find the row where "itemID" = iSortedList[i]<br />
                // and add the index number to the "colSort" cell			<br />
	}<br />
        dvUnsorted.Sort = "colSort ASC";<br />
	return dvUnsorted;<br />
} <br />


So what I need is to find the row where "itemID" = iSortedList[i]
How Can I find that row in the DataList?

If theres someone with a better idëe to sort a DataView by an int[], I would be happy to know.


Thanks
Thomas
AnswerRe: Sorting a DataView by an int[] list Pin
thomasa31-Aug-05 22:51
thomasa31-Aug-05 22:51 
QuestionMS Word add-in install problem Pin
parviz_rashidi31-Aug-05 21:17
parviz_rashidi31-Aug-05 21:17 
QuestionHow can I link a listbox to a picturebox in C#.net?please help... Pin
azizkhani31-Aug-05 20:41
azizkhani31-Aug-05 20:41 
QuestionPlease help.. Pin
KORCARI31-Aug-05 19:30
KORCARI31-Aug-05 19:30 
AnswerRe: Please help.. Pin
Stefan Troschuetz31-Aug-05 21:11
Stefan Troschuetz31-Aug-05 21:11 
QuestionAudio streaming Pin
Cheezo31-Aug-05 17:33
Cheezo31-Aug-05 17:33 
QuestionRead URL Link from Managed Code? Pin
ehollar31-Aug-05 15:24
ehollar31-Aug-05 15:24 

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.