2022年4月15日

C# 当list有多个属性时,取某个属性的值

摘要: 例如想取 same的值: list[1].GetType().GetProperty("same").GetValue(list[1],null).ToString()//也可以循环list for (int i = 0; i < list.Count; i++) { string a = list 阅读全文

posted @ 2022-04-15 17:02 写个笔记 阅读(1386) 评论(0) 推荐(0) 编辑

C# Gridview 居中显示,显示在屏幕中间

摘要: 只需要加上这段代码: style="margin: 0px auto;" 例: <cimesui:cimesgridview id="gvshow" runat="server" autogeneratecolumns="false" style="margin: 0px auto;" allowp 阅读全文

posted @ 2022-04-15 16:58 写个笔记 阅读(389) 评论(0) 推荐(0) 编辑

导航