title: ASP.NET DataGrid - DropDownLists in separate rows?
body: <p>I have a Datagrid with 3 DropDownLists in it. Although it is a DataGrid it will really only have two rows. I am populating the BoundColumns using a DataTable in my code.</p>
  
  <p>Normally this is not a problem to setup and create the two rows, hold the two rows of values and retrieve them later. But as it turns out, I have to have different lists in each of my rows</p>
  
  <p>For example:</p>
  
  <p>First Row:
  --- 3 DropDownLists will each have four options: Apples, Oranges, Apples and Oranges, Neither</p>
  
  <p>Second Row:
  --- 3 DropDownLists will each have four options: Grapes, Cherries, Grapes and Cherries, Neither</p>
  
  <p>So I am wondering what is the most painless way to accomplish this. I think a solution has to do with DataSource, and DataTextField and/or DataValueField properties of the DropDownList. But if I put a function in DataSource I am not sure how to pass it the row index so it will know which list to return.  Using ItemTypes (Item, AlternatingItem) also might hold a solution but how would they best be used?</p>