gridview

DEV控件GridControl常用属性设置

大兔子大兔子 提交于 2020-01-19 20:05:58
1、 如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 2、 如何新增一条记录 (1)、gridView.AddNewRow() (2)、实现 gridView_InitNewRow 事件 3、如何解决 GridControl 记录能获取而没有显示出来的问题 gridView.populateColumns(); 4、如何让行只能选择而不能编辑(或编辑某一单元格) (1)、View->OptionsBehavior->EditorShowMode 设置为:Click (2)、View->OptionsBehavior->Editable 设置为:false 5、如何禁用 GridControl 中单击列弹出右键菜单 设置 Run Design->OptionsMenu->EnableColumnMenu 设置为:false 6、如何隐藏 GridControl 的 GroupPanel 表头 设置 Run Design->OptionsView->ShowGroupPanel 设置为:false 7、如何禁用 GridControl 中列头的过滤器 过滤器如下图所示: 设置 Run Design->OptionsCustomization->AllowFilter 设置为:false 8、如何在查询得到

用CSS固定GridView表头(zt)

狂风中的少年 提交于 2020-01-19 02:51:57
Summary : Maintaining Fixed Headers in GridView Published On : 26 Apr 2007 One of the commonly asked question by developers is how to maintain headers of GridView in a fixed position. You must have observed that in Excel you can freeze top cells of your spread sheet. When you scroll down the headers are always visible making your sheet more readable. The same effect is often needed in GridView control especially if you are displaying many records at a time. In this article I will explain a technique that will allow you to achieve this with ease. Framework Version : 2.0 Coding Language : C#

Gridview固定列

梦想与她 提交于 2020-01-19 02:50:53
http://blog.csdn.net/Samanthaqu/archive/2007/12/04/1915667.aspx 大鸟 14:18:00 样式表 .fixColleft { z-index:120; left: expression(this.offsetParent.scrollLeft); position: relative } .fixedHeader { overflow: auto;} .fixColleft { } 后台代码: 绑定gridview this.GridView1.Columns[0].HeaderStyle.CssClass = "fixColleft"; this.GridView1.Columns[1].HeaderStyle.CssClass = "fixColleft"; this.GridView1.Columns[0].ItemStyle.CssClass = "fixColleft"; this.GridView1.Columns[1].ItemStyle.CssClass = "fixColleft"; this.GridView1.DataBind(); 大鸟 14:21:46 在页面样式加入: <style type="text/css"> .Freezing { position:relative ; table

Gridview固定列

 ̄綄美尐妖づ 提交于 2020-01-19 02:49:13
http://blog.csdn.net/Samanthaqu/archive/2007/12/04/1915667.aspx 大鸟 14:18:00 样式表 .fixColleft { z-index:120; left: expression(this.offsetParent.scrollLeft); position: relative } .fixedHeader { overflow: auto;} .fixColleft { } 后台代码: 绑定gridview this.GridView1.Columns[0].HeaderStyle.CssClass = "fixColleft"; this.GridView1.Columns[1].HeaderStyle.CssClass = "fixColleft"; this.GridView1.Columns[0].ItemStyle.CssClass = "fixColleft"; this.GridView1.Columns[1].ItemStyle.CssClass = "fixColleft"; this.GridView1.DataBind(); 大鸟 14:21:46 在页面样式加入: <style type="text/css"> .Freezing { position:relative ; table

GridView固定表头

ぃ、小莉子 提交于 2020-01-19 02:40:30
代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml " > <head runat="server"> <title>GridView固定表头 清清月儿 http://blog.csdn.net/21aspnet </title> <style> .Freezing { //QQ:272912705 光之翼 www.hi.baidu.com/jcomet position:relative ; table-layout:fixed; top:expression(this.offsetParent.scrollTop); z-index: 10; } .Freezing th{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;} </style> </head> <body style="font-size=12px"> <form id="form1" runat="server"> <div style

How do I send gridview as excel email attachment

本秂侑毒 提交于 2020-01-17 16:39:09
问题 I know I can export my gridview to excel without using VerifyRenderingInServerForm(Control control) like this: Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=filename.xls"); Response.Charset = ""; Response.ContentType = "application/vnd.ms-excel"; StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); GridView1.AllowPaging = false; GridView1.DataBind(); //Change the Header Row back to white color GridView1

GridView is not Scrolling smoothly

做~自己de王妃 提交于 2020-01-17 11:16:46
问题 I have 100 plus images present in drawable folder I am creating gallery in GridView, But facing scrolling issues. gridView is not scrolling smoothly although I have used ViewHolder... here is my code... public class MainActivity extends Activity { int[100] Names_images = {R.drawable.img1,R.drawable.img3,R.drawable.img4,R.drawable.img5,R.drawable.img6,...};//100 images String[100] names = {"name1","name2","name3","name4","name5","name6",...};// 100 names GridView gridview;

GridView is not Scrolling smoothly

扶醉桌前 提交于 2020-01-17 11:16:03
问题 I have 100 plus images present in drawable folder I am creating gallery in GridView, But facing scrolling issues. gridView is not scrolling smoothly although I have used ViewHolder... here is my code... public class MainActivity extends Activity { int[100] Names_images = {R.drawable.img1,R.drawable.img3,R.drawable.img4,R.drawable.img5,R.drawable.img6,...};//100 images String[100] names = {"name1","name2","name3","name4","name5","name6",...};// 100 names GridView gridview;

Can't change gridview itemssource

那年仲夏 提交于 2020-01-17 07:45:55
问题 I'm trying to change a box's color in a gridview(that has ItemTemplates which has 100 green boxes). First, I created a list(which typed as my class) and I added all items to list and I added list to my gridview source : grid1.ItemsSource = boxlist; After, I added a click event for item click on gridview. I want that when I clicked to an item, this item's color will be changed. So I edited list as it : int id = ((Boxes)e.ClickedItem).id; boxlist[id].color = "DarkRed"; grid1.ItemsSource =

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method Update

泪湿孤枕 提交于 2020-01-17 04:50:09
问题 i tried every solution so far with this similar problem and i get this error everytime. Plz Help!! static method [DataObjectMethod(DataObjectMethodType.Update)] public static void updateCustomer(int CustomerID, string firstname, string lastname, string email, int AccountNum) { SqlConnection connection = new SqlConnection(getConnectionString()); connection.Open(); SqlCommand command = new SqlCommand("sp_updateCustomer", connection); command.CommandType = CommandType.StoredProcedure; command