on 05-17-2006 6:25 AM
Hi All,
I need to bind values(static) to the dropdownkey in the table through code ,can any one tell me how to perform this action in VB.Net..
if you have any code sample send it to me..
regards,
Vinoth
hi omri,
CType(Table1.Items(rowNumber.Cells(colNumber).TableCellContent, DropDownByKey).Items.Add(ddLI)
i tried it but it gives me error in braces..could u rectify the error in that code.
regards,
Vintoh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth,
Try using the following code:
CType(Table1.Items(rowNumber.Cells(colNumber).TableCellContent, DropDownByKey).Items.Add(ddLI)
where:
Table1 is your table
rowNumber is row
colNumber is column
ddLI is DropDownListItem
Also, notice that the column's number must refer to a "DropDownKey" column.
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.