AD
Administrator
Syncfusion Team
November 17, 2005 11:24 AM UTC
Try using using CurrentCellShowingDropDown to set the DataSource on the dropped list. Here is a KB link discussing something similar.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=115
One thing you need to take into account is that initially the DataSource for the whole column should be set to a list that includes all possible values that would appear in the cell. For example, this might be an unfiltered DataView. Then in CurrentCellShowingDropDown, you set the RowFilter property on that dataview to only display the choices you need for that particular dropdown. (Setting this all-inclusive list initially avoids problems with invalid choices when you dynamically change the source list on individual cells to something different. If all the different droplists are fixed - only vary from row to row - then you will probably not need to worry about this all inclusive-list in your arraylist situation).
FL
Filip L'Hommelet
November 17, 2005 12:39 PM UTC
the KB-link wasn''t too clear, but I cannot thank you enough for your own explanation, because that works! thank you for this solution!
>Try using using CurrentCellShowingDropDown to set the DataSource on the dropped list. Here is a KB link discussing something similar.
>
>http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=115
>
>One thing you need to take into account is that initially the DataSource for the whole column should be set to a list that includes all possible values that would appear in the cell. For example, this might be an unfiltered DataView. Then in CurrentCellShowingDropDown, you set the RowFilter property on that dataview to only display the choices you need for that particular dropdown. (Setting this all-inclusive list initially avoids problems with invalid choices when you dynamically change the source list on individual cells to something different. If all the different droplists are fixed - only vary from row to row - then you will probably not need to worry about this all inclusive-list in your arraylist situation).