在SELECT中,用CASE 例如: select a.Cname as Tcomname,b.Cname as TGoodname,D.nQuanty,c.cNote, (case when c.iEvaluate='-1' then '差评' when c.iEvaluate='1' then '好评' when c.ievaluate='0' then '一般' end) as ievaluate
上篇UWP VirtualizedVariableSizedGridView 支持可虚拟化可变大小Item的View(一) 讲到该控件的需要和设计过程. 这篇讲讲开发过程中一些重要问题解决. 1.支持ISupportIncrementalLoading,实现HasMoreItems属性和LoadMoreItemsAsync方法 因为我们上篇里面讲过,需要把源数据分成一个一个的Group作为GirdView的源, 所以LoadMoreItemsAsync方法里面我做了以下的实现: public I
引言 Tabcontrol控件也是我们在项目中经常用到的一个控件,用它将相关的信息组织在一起分类显示. 简介 ============================================ 自定义TabitemPanel WpfScrollableTabControl.zip ============================================ 自动选择第一个TabItem Auto-Select First Item Using XAML for
It is great to be able to build small utilities on top of an excellent RDBMS. Thank you MySQL. This is a small but complex utility to perform online schema change for MySQL. We call it OSC and the source is here. Some ALTER TABLE statements take too
概述 在上面一篇 Windows Community Toolkit 4.0 - DataGrid - Overview 中,我们对 DataGrid 控件做了一个概览的介绍,今天开始我们会做进一步的详细分享. 按照概述中分析代码结构的顺序,今天我们先对 CollectionViews 文件夹中的类做详细的分析. 下面是 Windows Community Toolkit Sample App 的示例截图和 code/doc 地址: Windows Community Toolkit Doc -