Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
GeneralExtract an ISO files to the local hard drive Pin
ntuyen0115-Sep-04 9:17
ntuyen0115-Sep-04 9:17 
GeneralRe: Extract an ISO files to the local hard drive Pin
Joe Woodbury15-Sep-04 14:17
professionalJoe Woodbury15-Sep-04 14:17 
Questionhow to build a web browser? Pin
DuyNguyen15-Sep-04 9:17
DuyNguyen15-Sep-04 9:17 
AnswerRe: how to build a web browser? Pin
Nnamdi Onyeyiri15-Sep-04 10:22
Nnamdi Onyeyiri15-Sep-04 10:22 
GeneralC# - Convert Bitmap object to byte[] Pin
theJazzyBrain15-Sep-04 8:45
theJazzyBrain15-Sep-04 8:45 
GeneralRe: C# - Convert Bitmap object to byte[] Pin
Grimolfr15-Sep-04 9:28
Grimolfr15-Sep-04 9:28 
GeneralRe: C# - Convert Bitmap object to byte[] Pin
theJazzyBrain15-Sep-04 22:12
theJazzyBrain15-Sep-04 22:12 
Generalloop throu dataset Pin
Totoo15-Sep-04 7:47
Totoo15-Sep-04 7:47 
I need your help on following code segment.

DataSet ds=new DataSet();
da.Fill (ds, "Price");
DataTable newdt=new DataTable();
for (int i= 0; i<=ds.Tables["Price"].Rows.Count-1; i++)
newdt.Columns.Add(i.ToString());
for (int i=0; i<=ds.Tables["Price"].Columns.Count-1; i++)
for (int y = 0; y<=ds.Tables["Price"].Rows.Count-1; y++)
dr[i]=ds.Tables["Price"].Rows[y].ItemArray[i].ToString();
newdt.Rows.Add(dr[i]);

What I am trying to accomplish is to loop through one data set and do a flip-flop of data on the fly, ie. rows on the first dataset table become columns of the finished one's. Then bind the result to UI control.

The data in the table looks like this:
DisctType/QtyBreak/UnitPrice
A........./0 to 100/$10.00
A........./101 to 300/$9.00
B........./5000 & up/$2.25

The UI has to make data look as follow:
DisctType/A........./A.........../B
QtyBreak/0 to 100/101 to 300/5000 & up
UnitPrice/$10.00../$9.00....../$2.25

I think I am down to last two lines but just could not pull it off.
GeneralInstalling Windows Services Pin
Guillermo Jimenez15-Sep-04 7:36
Guillermo Jimenez15-Sep-04 7:36 
GeneralRe: Installing Windows Services Pin
Heath Stewart15-Sep-04 7:47
protectorHeath Stewart15-Sep-04 7:47 
GeneralRe: Installing Windows Services Pin
Guillermo Jimenez15-Sep-04 10:04
Guillermo Jimenez15-Sep-04 10:04 
GeneralRe: Installing Windows Services Pin
Heath Stewart15-Sep-04 10:16
protectorHeath Stewart15-Sep-04 10:16 
GeneralRe: Installing Windows Services Pin
Guillermo Jimenez16-Sep-04 4:27
Guillermo Jimenez16-Sep-04 4:27 
GeneralRe: Installing Windows Services Pin
Heath Stewart16-Sep-04 5:31
protectorHeath Stewart16-Sep-04 5:31 
GeneralLooking for a generic method for accessing fields in C# classes/structs Pin
johnbMA15-Sep-04 7:06
johnbMA15-Sep-04 7:06 
GeneralRe: Looking for a generic method for accessing fields in C# classes/structs Pin
Nnamdi Onyeyiri15-Sep-04 7:31
Nnamdi Onyeyiri15-Sep-04 7:31 
GeneralRe: Looking for a generic method for accessing fields in C# classes/structs Pin
Heath Stewart15-Sep-04 7:42
protectorHeath Stewart15-Sep-04 7:42 
GeneralRe: Looking for a generic method for accessing fields in C# classes/structs Pin
Nick Parker15-Sep-04 7:46
protectorNick Parker15-Sep-04 7:46 
QuestionMax length of text in statusbar? Pin
blakeb_115-Sep-04 6:12
blakeb_115-Sep-04 6:12 
AnswerNevermind, found the answer Pin
blakeb_115-Sep-04 6:14
blakeb_115-Sep-04 6:14 
GeneralRe: Nevermind, found the answer Pin
Heath Stewart15-Sep-04 6:59
protectorHeath Stewart15-Sep-04 6:59 
GeneralRe: Nevermind, found the answer Pin
blakeb_117-Sep-04 5:34
blakeb_117-Sep-04 5:34 
GeneralScene change detection doubt Pin
ee9903515-Sep-04 5:55
ee9903515-Sep-04 5:55 
GeneralRe: Scene change detection doubt Pin
Heath Stewart15-Sep-04 6:54
protectorHeath Stewart15-Sep-04 6:54 
GeneralRe: Scene change detection doubt Pin
ee9903515-Sep-04 8:04
ee9903515-Sep-04 8:04 

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.