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!

Gridview dynamically adding new columns

Status
Not open for further replies.

aspnetvbcsharpnerd

Programmer
Jun 30, 2008
6
SE
I am binding gridview dynamically
Code:
mDataAdapter = new DataAdapter();
// Initiate the database connection
mDataAdapter.Init(Constant.CONNECTIONSTRING);

// Get the suppliers
mDataSet = mDataAdapter.GetSearchItem(ItemId, ItemName);

// Load the gridview with search items
grdItemSearch.DataSource = mDataSet;
grdItemSearch.DataBind();

How can I add to more columns as hyperlink column on every row with the id from the database.
 
You want to show the ID from the DB as a hyperlink? If so, you will have to return it in your result set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top