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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Most flexible way to bind data to a datagrid

Status
Not open for further replies.

Laeg

Programmer
Nov 29, 2004
95
IE
Usually I just bind a dataset to a datagrid but this time I want to have a great deal of flexibility as depending on some conditions each row that I display will look different.

So I want to be able to loop through a datasets' results and output a row dynamically rather than just binding all results.
 
I would scrap the datagrid and use a repeater with a series of WebUserControls. This gives you more control over manipulating the html.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
You can filter the datatable using a dataview and bind that to your grid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top