Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Have you Nested Datagrids? 1

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I am looking for anybody who has Nested datagrids. Is it even possible? I am going to try, but I'm sure I will have some questions...
 
qwert: Yes, interestingly I was just reading an article about nested datagrids today - very nice indeed. Technically the grid is called a "Master/Detal DataGrid" and I think the following article will get you going:

C:\ASPCode\DataGrid\Ask the DotNetJunkies Building a Master-Detail DataGrid.htm
 
DotNetJunkies is flipping out. No matter what I search for I get a search result for 'uploads'. The category lists of how-tos and tutorials bring me to a single article, not lists of articles... Very frustrating... (I know, nobodies problem here... just venting.)
 
qwert: This is strange. I went into the source and pulled out the http path but when I clicked on the above link (testing it) a new page came up.

Send me an email to: biochem3d@yahoo.com and I'll sent you Master/Detail page.
 
DotNetJunkies was testing some new compression software on their servers and had some trouble, but it should be up now.

I got to see the article and am trying it, tho I will have to get back to you on whether or not it is working. Thanks.
 
K, I'm trying to get this to happen when the edit button is pressed/clicked. It ain't happening. Here is what I am firing when the edit button is pressed:
Code:
Public Sub dgOrderSum_Edit(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
 Me.dgOrderSum.EditItemIndex = e.Item.ItemIndex
 Me.bindOrder()

 Dim srchStr As String = e.Item.Cells(0).Text.ToString
 srchStr = "SELECT wal, [35], [45], [55], [57], [88], [80], [10], [14], [20], [24] FROM wedDetails WHERE OrderID = " & Me.lblOrderNum.Text & " AND SubjectID LIKE '" & e.Item.Cells(0).Text.ToString & "'"

 Dim newDg As New DataGrid()
 newDg.ItemStyle.Font.Name = "Times New Roman"
 newDg.ItemStyle.Font.Size = FontUnit.Medium
 newDg.AlternatingItemStyle.BackColor = Color.LightGray
 newDg.ShowHeader = False

 newDg.DataSource = getTable(srchStr, comFunc.dbType.Access)
 newDg.DataBind()
 'e.Item.Cells(2).Controls.Add(newDg)
 Me.dgOrderSum.Items(0).Cells(2).Controls.Add(newDg)

End Sub

getTable returns a table, and works for all my other datasources. The query works, there is no error when getTable fires, so newDg is getting it's source. There are no errors at all, however the cell remains empty. Any ideas why?
 
qwert: going to sent this to the printer and when I get a break this afternoon take a look at it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top