Ziv,
Looks like you are almost on the right track. What are you using as a
combobox? A DropDownList? What DataSource are you setting to a function?
In any case, I don't think you can databind the control you are using as a
combo, since you want to populate it from a datagrid row and not from any
separate data source. I think you can achieve what you want much easier in
ItemDataBound event. The event gets a parameter that contains a reference
to the datagrid item that is being databound. You should filter out the
header, the footer and process only data items. Data item is a data row from
your table. It contains a collection of cells. So, you have access to all
the cells on the current row. You can populate the combo control out of the
cell values.
Eliyahu
Ziv Riezman said:
Hi
Thanks for the replay, can you be more specific about your answer, I'm
using the combo in a template column, and setting the data source to a
function on the asp page, how can this function know which row currently
being updated ?