Okay, I've been struggling to present my issue in terms people can understand, so here goes my best:
I have a DataGrid that has a list of paragraphs. In the last column, a templatecolumn, I have a DropDownList for the Order in which the paragraphs are displayed. The DropDownList is generated from the ItemCreated Event (unless you recommend a better way).
This all works fine.
The issue is getting the existing value of the OrderId from the Database and as the SelectedValue of the DropDownList.
Normally, I would do it similar to this:
But since e.Item.Cells.Text is a BoundColumn created in the Event process before this Column is created I cannot grab that value this way.
My question is what would be the best way to accomplish what I'm trying to do?
Thanks, in advance, for your help on the issue! :-)
This is part of an admin module of a website. The theory is that once the order of paragraphs is updated in each column with a value of 1-(MaxNoOfParagraphs) that you would click a button outside the datagrid that would be "Update Paragraph Order". That would iterate through that collection of rows and update each row with the proper value for the OrderId.