C#ContextMenuStrip项目无循环插入

时间:2015-08-20 14:43:00

标签: c# contextmenustrip

如何使用任何循环在contextMenuStrip中添加List项?有没有像DataBinding等的方法?

1 个答案:

答案 0 :(得分:0)

我是通过使用这种Recusive方法做到的:

public ContextMenuStrip ItemInsertion(ContextMenuStrip contextMenuStrip,List Items)

{

    if request.xhr?
      # *** repond with the new value ***
      render :text => params[:order_item].values.first
    end

}