Why can't you use a datagrid? If your reasons are strong
enough, then what about a repeater?
-----Original Message-----
From: avital_work [mailto:[EMAIL PROTECTED]
Hi,
I have a sp in sql that returns the following result:
VALUEDESC MISGERETNAME
treatment FRAME E1
treatment FRAME E2
treatment frame E3
treatment frame E4
daytime frame D1
daytime FRAME D2
GROUP G1
GROUP G2
GROUP G3
REGULAR frame R1
REGULAR frame R2
In vb.net I have the following code (omitted the function that calls
the sp for brevity):
Private Sub AddStudentRow(ByRef tbl1 As Table, ByVal drv As
DataRowView)
Dim row1 As New TableRow
AddCell(drv.Item("valuedesc"), 5, row1, False,
HorizontalAlign.Center)
AddCell(drv.Item("misgeretname"), 5, row1, False,
HorizontalAlign.Center)
end sub
Private Sub AddCell(ByVal strCellText As String, ByVal cellWidth As
Integer, _
ByRef row1 As TableRow, ByVal blnBold As
Boolean, Optional ByVal bytColSpan As Byte = 1, Optional ByVal
halCell As HorizontalAlign = HorizontalAlign.NotSet)
Dim cell1 As New TableCell
cell1.Text = strCellText
cell1.Width = Unit.Percentage(cellWidth)
cell1.ColumnSpan = bytColSpan
cell1.HorizontalAlign = halCell
If blnBold Then
cell1.Font.Bold = True
End If
row1.Cells.Add(cell1)
End Sub
Private Sub AddColCaptions(ByRef tbl1 As Table)
Dim row1 As New TableRow
''Create the column's captions
AddCell("ValueDesc", 5, row1, True, HorizontalAlign.Center)
AddCell("MisgeretName", 5, row1, True, HorizontalAlign.Right)
tbl1.Rows.Add(row1)
End Sub
The table that i want to get should have the captions and under the
valuedesc I don't want to repeat the valuedesc name as in the
resultset above. Instead I want to write it once and in the column
next to that to have the relevant misgeretname such as:
VALUEDESC MISGERETNAME
treatment FRAME E1
FRAME E2
frame E3
frame E4
daytime frame D1
FRAME D2
GROUP G1
G2
G3
How can I do that w/o using a datagrid?
Thanks
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/