Click here to Skip to main content
16,004,806 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Microsoft.Office.Core troubles Pin
frankiebaby210-Sep-07 12:19
frankiebaby210-Sep-07 12:19 
QuestionRead binary file header and data array in VB 2005 Pin
Dave_66-Sep-07 13:30
Dave_66-Sep-07 13:30 
AnswerRe: Read binary file header and data array in VB 2005 Pin
Dave Kreskowiak7-Sep-07 5:16
mveDave Kreskowiak7-Sep-07 5:16 
QuestionSelecting a row in a datagrid and displaying the correspondin fields in textboxes, listboxes? Pin
Mr Oizo6-Sep-07 10:16
Mr Oizo6-Sep-07 10:16 
AnswerRe: Selecting a row in a datagrid and displaying the correspondin fields in textboxes, listboxes? Pin
Smokeywade6-Sep-07 11:22
Smokeywade6-Sep-07 11:22 
QuestionHide Child Form ControlBox,Form Pic,Min,Max Pin
P.T.R.K6-Sep-07 8:33
P.T.R.K6-Sep-07 8:33 
AnswerRe: Hide Child Form ControlBox,Form Pic,Min,Max Pin
Lucky Sheikh6-Sep-07 20:05
Lucky Sheikh6-Sep-07 20:05 
QuestionWinform Nested Datagrids - Question Pin
Smokeywade6-Sep-07 8:23
Smokeywade6-Sep-07 8:23 
How will I show the child table within the parent table without having to clink on the link - example My main grid loads up fine and it shows the '+' '-' to expand the table, but when I click the '+' I get "datarelation" link once I click that link the table expands.

Is it possible to do this with just one click on the '+'? Dont want to use two datagrids, because I want all the info on one grid. Will I have to purchase a third pary product to do this? Here is my code below - am I doing something wrong?

Dim command1 As New SqlCommand("Select * FROM LateOrders_Header_view", cnn1)<br />
        Dim command2 As New SqlCommand("Select * from LateOrders_Line_view", cnn1)<br />
        'Dim SqlReader As SqlDataReader<br />
        Try<br />
            cnn1.Open()<br />
<br />
            'Debug.WriteLine(cnn1.ConnectionString)<br />
            Dim dt As New DataTable("LateOrders_Header_view")<br />
            dgOrderReport.DataSource = dt<br />
            Dim DirAdapter As New SqlDataAdapter(command1)<br />
            Dim DirAdapter2 As New SqlDataAdapter(command2)<br />
            Dim dc1 As DataColumn<br />
            Dim dc3 As DataColumn<br />
            Dim datarelation As DataRelation<br />
<br />
            MyDataSet = New DataSet<br />
            DirAdapter.TableMappings.Add("tabel1", "LateOrders_Header_view")<br />
            DirAdapter.TableMappings.Add("tabel2", "LateOrders_line_view")<br />
<br />
            DirAdapter.Fill(MyDataSet, "LateOrders_Header_view")<br />
            DirAdapter2.Fill(MyDataSet, "LateOrders_Line_view")<br />
<br />
            dc1 = MyDataSet.Tables("LateOrders_Header_view").Columns("order_no")<br />
            dc3 = MyDataSet.Tables("LateOrders_Line_view").Columns("order_no")<br />
            datarelation = New DataRelation("Line View", dc1, dc3)<br />
            MyDataSet.Relations.Add(datarelation)<br />
            'dc3.ReadOnly = True<br />
<br />
            dgOrderReport.DataSource = MyDataSet.DefaultViewManager '.Tables("LateOrders_Header_view").DefaultView<br />
            dgOrderReport.DataMember = "LateOrders_header_view"


Any Ideas?

Thank You

AnswerRe: Winform Nested Datagrids - Question Pin
Lucky Sheikh6-Sep-07 20:08
Lucky Sheikh6-Sep-07 20:08 
GeneralRe: Winform Nested Datagrids - Question [modified] Pin
Smokeywade7-Sep-07 2:18
Smokeywade7-Sep-07 2:18 
QuestionIssue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
nishkarsh_k6-Sep-07 7:49
nishkarsh_k6-Sep-07 7:49 
AnswerRe: Issue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
Luc Pattyn6-Sep-07 8:06
sitebuilderLuc Pattyn6-Sep-07 8:06 
GeneralRe: Issue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
nishkarsh_k8-Sep-07 9:38
nishkarsh_k8-Sep-07 9:38 
GeneralRe: Issue with Image, PictureBox, AutoRedraw. Paint Brush Application In Vb 2005 Pin
Luc Pattyn8-Sep-07 11:01
sitebuilderLuc Pattyn8-Sep-07 11:01 
QuestionHow to create a window handle. Pin
RJGCarey6-Sep-07 7:36
RJGCarey6-Sep-07 7:36 
AnswerRe: How to create a window handle. Pin
Dave Kreskowiak6-Sep-07 7:43
mveDave Kreskowiak6-Sep-07 7:43 
GeneralRe: How to create a window handle. Pin
RJGCarey6-Sep-07 8:04
RJGCarey6-Sep-07 8:04 
GeneralRe: How to create a window handle. Pin
Luc Pattyn6-Sep-07 8:10
sitebuilderLuc Pattyn6-Sep-07 8:10 
GeneralRe: How to create a window handle. Pin
RJGCarey6-Sep-07 9:44
RJGCarey6-Sep-07 9:44 
GeneralRe: How to create a window handle. Pin
Luc Pattyn6-Sep-07 9:53
sitebuilderLuc Pattyn6-Sep-07 9:53 
GeneralRe: How to create a window handle. Pin
RJGCarey6-Sep-07 11:46
RJGCarey6-Sep-07 11:46 
QuestionHow to call a procidure requiring arguments with new thread Pin
Amer Rehman6-Sep-07 6:50
Amer Rehman6-Sep-07 6:50 
AnswerRe: How to call a procidure requiring arguments with new thread Pin
Dave Kreskowiak6-Sep-07 7:37
mveDave Kreskowiak6-Sep-07 7:37 
AnswerRe: How to call a procidure requiring arguments with new thread Pin
RJGCarey6-Sep-07 7:47
RJGCarey6-Sep-07 7:47 
QuestionCrystalReportviewer and Pagesetup Pin
dcode256-Sep-07 4:56
dcode256-Sep-07 4:56 

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.