Click here to Skip to main content
15,887,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have got some values binded in an array list
i have a table in my form
with 4 columns and 6 rows each td with a label
i want to bind a label with data from arraylist
please help thanks in advance
asok
Posted

1 solution

When you say "table in my form" is it a HTML table with individual label controls or a gridview that is getting rendered as a table on the client?

If it is a HTML table then you already have the label ids just loop through the arraylist and assign it to the label text.

If it is a gridview with labels in item template then the best way forward would be to use the grids databinding event to assign the values to the labels. This page[^] from MSDN explains about the gridview's onDataBinding event.

HTH!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900