Winform开发小问题小技巧总结
最近工作又换到了以前的windows开发,算是回归原始吧,记录下平时遇到的点滴小问题
绑定到DataGridView的Combox列怎么也绑不上?
最近绑定一个枚举的值到DataGridView的DataGridViewComboxCell,发现怎么也绑不上,数据源设置为string[], list,最后还用datatable,都没有下拉框出来,后来仔细查看是Grid里面Column

如果想把多个cs文件折叠在Form窗体下面,如何操作?效果如下,通过DependUpon 属性修改Project文件

<Compile Include="Setup\RecipeSetupView.Designer.cs"> <DependentUpon>RecipeSetupView.cs</DependentUpon> </Compile> <Compile Include="Setup\RecipeSetupView.Controller.cs"> <DependentUpon>RecipeSetupView.cs</DependentUpon> </Compile> <Compile Include="Setup\RecipeSetupView.Model.cs"> <DependentUpon>RecipeSetupView.cs</DependentUpon> </Compile>

浙公网安备 33010602011771号