You need to bind the datatable to one of controls capable of rendering bound
tables (Repeater, DataList, DataGrid, GridView in 2.0). Then you have 2
ways:
1. Databind the control to the source datatable. Handle PreRender event. In
the event handler loop through the control item that represent the rows and
the cells and set their visibility as you wish.
2. Loop through the source datatable, decide what you want to show and make
another datatable of what you want to show only. Then databind the rendering
control to this another datatable.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.