on 01-16-2006 9:04 AM
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
Hi Omri,
It is indeed a bug. Please open a bug for that issue.
For now, a possible work around can be to create a DataTable manually, set it as the DataSource of the Table control and call the DataBind() method.
Please tell me if this works for you and if so, please close this ticket and open a bug.
Thanks, Reshef
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Omri,
It seems like using data binding would have solved lots of your problems.
So I'm curious... why <b>aren't</b> you using data binding? Can you describe the general scenario in context?
Regards,
Ofer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.