I see a bunch of solutions about editing the template, but seeing as how my gridview changes between 10 different datasources a template isn't possible. Any idea of how I can accomplish this?
Something like: e.Row.Cells(1).Controls.Clear()then add the dropdown list and set it to the correct datasource?Any idea how I can identify the cell by its name?
Shawn
2010-08-16 13:56:14
Is there a pattern that you can follow? If not then iterate throught the columns collection for the column of a particular name. Record the index and use that. Might want to cache the index for performance.
madcapnmckay
2010-08-16 14:52:30
No pattern with that many datasources.
Shawn
2010-08-16 16:31:31
I also only want the dropdown list to display when editing, so is onrowdatabound the correct event?
Shawn
2010-08-16 18:09:12