Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is there a method summary snippet? Pin
Abhijit Jana18-Mar-09 18:39
professionalAbhijit Jana18-Mar-09 18:39 
QuestionShortcut keys and macros Pin
12Code18-Mar-09 17:35
12Code18-Mar-09 17:35 
AnswerRe: Shortcut keys and macros Pin
Abhijit Jana18-Mar-09 18:21
professionalAbhijit Jana18-Mar-09 18:21 
GeneralRe: Shortcut keys and macros [modified] Pin
12Code18-Mar-09 19:01
12Code18-Mar-09 19:01 
AnswerRe: Shortcut keys and macros Pin
Pankaj Nikam18-Mar-09 18:35
professionalPankaj Nikam18-Mar-09 18:35 
GeneralRe: Shortcut keys and macros Pin
12Code18-Mar-09 19:17
12Code18-Mar-09 19:17 
GeneralRe: Shortcut keys and macros Pin
Pankaj Nikam18-Mar-09 19:36
professionalPankaj Nikam18-Mar-09 19:36 
Questionhow to join 2 tables in a data set Pin
Nine_18-Mar-09 17:31
Nine_18-Mar-09 17:31 
Hi all
I have 2 tables in the same data set like this:
string sqlCus="select * from Customers";
string sqlOrder="select * from Orders";

SqlDataAdapter daCus=new SqlDataAdapter(sqlCus,conn);
SqlDataAdapter daOrder=new SqlDataAdapter(sqlOrder,conn);

DataSet ds=new DataSet();
daCus.Fill(ds,"Customers");
daOrder.Fill(ds,"Orders");

now I want to get the OrderID column in Orders table and ContactName (CustomerName) in the Customers table according to the CustomerID column in the Orders table then show both column in a DataGridView control, how to do that?

note: not use stored procedure and Linq
AnswerRe: how to join 2 tables in a data set Pin
tech60318-Mar-09 19:06
tech60318-Mar-09 19:06 
GeneralRe: how to join 2 tables in a data set Pin
Nine_19-Mar-09 1:29
Nine_19-Mar-09 1:29 
GeneralRe: how to join 2 tables in a data set Pin
tech60319-Mar-09 3:06
tech60319-Mar-09 3:06 
QuestionWindows Media Player control - suppress full screen Pin
Christian Graus18-Mar-09 16:51
protectorChristian Graus18-Mar-09 16:51 
AnswerRe: Windows Media Player control - suppress full screen Pin
ABitSmart18-Mar-09 18:05
ABitSmart18-Mar-09 18:05 
QuestionDeploy N-Tier Application... Pin
Illegal Operation18-Mar-09 12:26
Illegal Operation18-Mar-09 12:26 
QuestionMessage Removed Pin
18-Mar-09 10:59
professionalN_tro_P18-Mar-09 10:59 
AnswerRe: Get an IntPtr to an Image Pin
Christian Graus18-Mar-09 11:05
protectorChristian Graus18-Mar-09 11:05 
GeneralMessage Removed Pin
18-Mar-09 11:31
professionalN_tro_P18-Mar-09 11:31 
GeneralRe: Get an IntPtr to an Image Pin
Christian Graus18-Mar-09 12:27
protectorChristian Graus18-Mar-09 12:27 
GeneralRe: Get an IntPtr to an Image Pin
0x3c018-Mar-09 21:11
0x3c018-Mar-09 21:11 
QuestionHow to connect Oracle to my C# program Pin
E_Gold18-Mar-09 10:59
E_Gold18-Mar-09 10:59 
AnswerRe: How to connect Oracle to my C# program Pin
EliottA18-Mar-09 11:03
EliottA18-Mar-09 11:03 
QuestionIdentifying which user is running a process? Pin
bbranded18-Mar-09 9:55
bbranded18-Mar-09 9:55 
AnswerRe: Identifying which user is running a process? Pin
Anthony Mushrow18-Mar-09 10:29
professionalAnthony Mushrow18-Mar-09 10:29 
GeneralRe: Identifying which user is running a process? Pin
bbranded18-Mar-09 10:39
bbranded18-Mar-09 10:39 
QuestionNeed Advice about Inserting Pin
soulidentities18-Mar-09 9:00
soulidentities18-Mar-09 9:00 

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.