zoukankan
html css js c++ java
枚举类型作为数据源绑定到dropdownlist控件
主要运用到System.Enum命名空间下的两个方法: GetValues(), GetName.
BindState
#region
BindState
/**/
///
<summary>
///
绑定出差状态
///
</summary>
private
void
BindState()
{
foreach
(
int
i
in
System.Enum.GetValues(
typeof
(EvectionState)))
{
string
text
=
System.Enum.GetName(
typeof
(EvectionState), i);
this
.ddlState.Items.Add(
new
ListItem(text, i.ToString()));
}
this
.ddlState.Items.Insert(
0
,
new
ListItem());
}
#endregion
查看全文
相关阅读:
leetcode 62. Unique Paths
leetcode 345. Reverse Vowels of a String
leetcode 344. Reverse String
Centos7.4 kafka集群安装与kafka-eagle1.3.9的安装
yarn调度器 FairScheduler 与 CapacityScheduler
Hive性能优化
HBase笔记
Zookeeper笔记
Hadoop组件详解(随缘摸虾)
ubuntu18.04.2 hadoop3.1.2+zookeeper3.5.5高可用完全分布式集群搭建
原文地址:https://www.cnblogs.com/luqingfei/p/808148.html
最新文章
导航栏,黑线,translucent Tab
UI
做什么?
loadview
xcdoe arm 架构 应用架构 硬件架构 目录
内购链接
游戏链接
代码片段 snippet
本地化链接 多语言
IOS6 in Practice 记录1
热门文章
webview
iOS 开源项目
学习路线,米课
leetcode 32. Longest Valid Parentheses
leetcode 70. Climbing Stairs
leetcode 300. Longest Increasing Subsequence
leetcode 53. Maximum Subarray
leetcode 215. Kth Largest Element in an Array
leetcode 82. Remove Duplicates from Sorted List II
leetcode 86. Partition List
Copyright © 2011-2022 走看看