Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
QuestionHow to access internal methods Pin
Andre Vianna28-Apr-09 4:38
Andre Vianna28-Apr-09 4:38 
AnswerRe: How to access internal methods Pin
Heywood28-Apr-09 4:52
Heywood28-Apr-09 4:52 
AnswerRe: How to access internal methods Pin
S. Senthil Kumar30-Apr-09 9:56
S. Senthil Kumar30-Apr-09 9:56 
Questionassigning ownership of files and folders??? Pin
lane0p228-Apr-09 4:22
lane0p228-Apr-09 4:22 
Questionc# or c++ image processing? Pin
Jon Hulatt28-Apr-09 3:58
Jon Hulatt28-Apr-09 3:58 
QuestionRe: c# or c++ image processing? Pin
led mike28-Apr-09 9:05
led mike28-Apr-09 9:05 
AnswerRe: c# or c++ image processing? Pin
Jon Hulatt28-Apr-09 21:35
Jon Hulatt28-Apr-09 21:35 
QuestionRe: c# or c++ image processing? Pin
led mike29-Apr-09 5:36
led mike29-Apr-09 5:36 
Questiondll security flaw Pin
ferroariel28-Apr-09 3:30
ferroariel28-Apr-09 3:30 
Question[Message Deleted] Pin
bhargava240928-Apr-09 3:01
bhargava240928-Apr-09 3:01 
AnswerRe: 3D Auto Cadd viewer Pin
musefan28-Apr-09 3:05
musefan28-Apr-09 3:05 
AnswerRe: 3D Auto Cadd viewer Pin
Simon P Stevens28-Apr-09 3:49
Simon P Stevens28-Apr-09 3:49 
General[Message Deleted] Pin
bhargava240930-Apr-09 2:02
bhargava240930-Apr-09 2:02 
GeneralRe: 3D Auto Cadd viewer Pin
Simon P Stevens30-Apr-09 2:50
Simon P Stevens30-Apr-09 2:50 
QuestionSolid Works Image To My C# Project Pin
bhargava240928-Apr-09 2:58
bhargava240928-Apr-09 2:58 
AnswerRe: Solid Works Image To My C# Project Pin
musefan28-Apr-09 3:03
musefan28-Apr-09 3:03 
GeneralRe: Solid Works Image To My C# Project Pin
bhargava240930-Apr-09 2:24
bhargava240930-Apr-09 2:24 
GeneralRe: Solid Works Image To My C# Project Pin
bunyaminasd24-Nov-09 21:25
bunyaminasd24-Nov-09 21:25 
Questionhow we reterive image from sql database using browse button Pin
shomic.goyal28-Apr-09 2:44
shomic.goyal28-Apr-09 2:44 
AnswerRe: how we reterive image from sql database using browse button Pin
jaipurguy128-Apr-09 2:47
jaipurguy128-Apr-09 2:47 
AnswerRe: how we reterive image from sql database using browse button Pin
musefan28-Apr-09 2:53
musefan28-Apr-09 2:53 
GeneralRe: how we reterive image from sql database using browse button Pin
shomic.goyal28-Apr-09 3:04
shomic.goyal28-Apr-09 3:04 
GeneralRe: how we reterive image from sql database using browse button Pin
musefan28-Apr-09 3:07
musefan28-Apr-09 3:07 
AnswerRe: how we reterive image from sql database using browse button Pin
nagendra.vk28-Apr-09 5:43
nagendra.vk28-Apr-09 5:43 
QuestionProblem to display Master-Details rows. Pin
hdv21228-Apr-09 2:41
hdv21228-Apr-09 2:41 
i have 2 tables named : Customers, Orders which have relation together (Customers table is Parent table).
Now in my form, i have 2 DataGridView which display list of customers (in dataGridView1) and list of orders of selected customers (in dataGridView).
i wrote this code, but at runTime all orders display to dataGridView2 and when i change customer record, nothing happend!
here is my code :


TestDataSet ds = new TestDataSet();
private void Form2_Load(object sender, EventArgs e)
{
            TestDataSetTableAdapters.CustomersTableAdapter cA = new TestDataSetTableAdapters.CustomersTableAdapter();
            cA.FillCustomers(ds.Customers);

            TestDataSetTableAdapters.OrdersTableAdapter oA = new TransactionalUpdate.TestDataSetTableAdapters.OrdersTableAdapter();
            oA.FillOrders(ds.Orders);

            dataGridView1.DataSource = ds.Customers.DefaultView;

            dataGridView2.DataMember = ds.Orders.ParentRelations[0].RelationName;
            dataGridView2.DataSource = ds.Orders.DefaultView;            
}


can anybody help me to solve this problem ?
Thanks

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.