Skip to Content
0
Jan 16, 2006 at 09:04 AM

Table Lead_Select event not fired

15 Views

Hi All,

I have a table control in my WebForm.

I set the SelectionMode property to "SINGLE" but when I click a row, a postback is occuring but the code of the

Lead_Select event is not executed.

What do I need to set in order to execute the Lead_Select event?

Here is a code snippet:

Dim tr As TableRow
tr = New TableRow
tr.Key = "A"

Dim c1 As TableBodyCell
c1 = New TableBodyCell(Table1, tr, 0)
c1.TableCellContent = New TextView("Row0 Column0")
tr.Cells.Add(c1)

c1 = New TableBodyCell(Table1, tr, 1)
c1.TableCellContent = New TextView("Row0 Column1")
tr.Cells.Add(c1)

Table1.Items.Add(tr)

Private Sub Table1_LeadSelect(ByVal sender As System.Object, ByVal e As SAP.Web.UI.Controls.Table.LeadSelectEventArgs) Handles Table1.LeadSelect
	Write("Event Fired")
End Sub

Also, For populating the table I'm not using data bind, I'm using a "for" loop.

Portal version is EP6 SP15, PDK version is 2.

Thanks,

Omri