Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i create a custom grid type output?

Status
Not open for further replies.

e106199

Programmer
Nov 17, 2005
27
US
Hi all,
I have a case where i have to show some data along with some custom columns derived from other data.
Here is an example:
in my database i have 5 columns but i dont want to show them the way they are. I want to show 5 of them and use the rest 2 to create 2 custom columns.
the output will be like
col1 col2 col3 col4 col5
---- ---- ---- ---- ----
db1 db2 db3 cust1 cust2
db1 db2 db3 cust2 cust2

these custom column can be anything like i wll use the id of the row to get something else from another table. So i will be running the same logic in a loop until the end of the data.
which was should i go? I dont think grid is that flexible and i dont know much about repeater. or if there is something else you would offer i m all open,
thank you much
-shane
 
You can do that fairly easily. Check out the ItemDataBound event of the DataGrid (or look at using Template Columns).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top