Combobox on Web Datagrid

D

Daryl Grantham

After sifting through pages and pages of useless
information: I'm now requesting help

I have a datagrid. I want one of the cells on this grid to
reference pricing information, based on the order number
in one of the datagrid cells. The cell referencing pricing
needs to be a dropdownlist or combobox within the
datagrid. This is on a webform and not a windows form.

How do I do this and what is the easiest/most efficient
way to do this. I've seen numerous examples and all have
lead me to a dead end.

grid columns:
Order
Price <list based on order>
Customer

pricing table:<duplicate order unique pricing>
order
price


Can anybody give me a good sample or explain how to do
this?

Daryl Grantham
Knoxville, TN
 
A

Alvin Bruney

you can add anything ( like a jumbo jet) to the datagrid just find a
reference to the cell in question in the itemdatabound event handler.
[snip]
//add a hyperlink for bogus results

HyperLink tb = new HyperLink();

tb.ForeColor = Color.Blue;

tb.Text = "Invalid";

tb.Font.Size = FontUnit.XXSmall;

tb.NavigateUrl = "Invalid.aspx";

e.Item.Controls[e.Item.Cells.Count - 1].Controls.Add(tb);

tb = null;
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,567
Members
47,204
Latest member
abhinav72673

Latest Threads

Top