devexpress

How to paste data from Excel into cxGrid

时光怂恿深爱的人放手 提交于 2019-12-23 01:20:31
问题 I have a Delphi application using DevExpress cxGrid (which is connected to database). I require to be able to copy-paste data from Excel into the grid. Is this possible? If so, how to do it, which additional components do i need? 回答1: Check the format with Clipboard.HasFormat(CF_TEXT) . Extract the text with Clipboard.AsText . Split into rows with StringList.Text := Clipboard.AsText . Each item in the string list is now a row from the clipboard. Split each row into individual cells using a

DevExpress控件的GridControl控件小结

夙愿已清 提交于 2019-12-22 18:56:10
DevExpress控件的GridControl控件小结 (由于开始使用DevExpress控件了,所以要点滴的记录一下) 1.DevExpress控件组中的GridControl控件不能使横向滚动条有效。 现象:控件中的好多列都挤在一起,列宽都变的很小,根本无法正常浏览控件单元格中的内容。 解决: gridView1.OptionsView.ColumnAutoWidth属性是true,即各列的宽度自动调整,你把它设成false,就会出现了。 2.使单元格不可编辑。 gridcontrol -->gridview -->OptionsBehavior -->Editable=false 3.没有下拉滚动条事件怎么办? 现象:因为需要加载大数据量数据,所以不能一次把所有数据读入datatable进行绑定,所以决定在用户进一步浏览数据时进行数据的实时加载工作,就是每当用户拉动滚动条时,多加载一些数据进入datatable.没有找到合适的滚动条事件,于是用这个事件代替了,非常合适我的需求. TopRowChanged事件. 4.获取选定行,指定列单元格的内容 private string GetSelectOID() { int[] pRows = this.gridView1.GetSelectedRows(); if (pRows.GetLength(0) > 0) return

What am I doing wrong in this ASPxPageControl? (dev express)

那年仲夏 提交于 2019-12-22 14:04:14
问题 Here is what I have. I am trying to use Developer Express ASPxPageControl. I want to only load the first TabPage (and WebUserControl it contains) when the page is loaded and then when I click on subsequent tabs, load those WebUserControls. I have found documentation here and other places telling me to set the ASPxPageControl.AutoPostBack property to false, and ASPxPageControl.EnableCallBacks set to true However, this is not working for me. I have verified with the debugger that when the main

How do I get my selected GridView rows into a Javascript variable?

放肆的年华 提交于 2019-12-22 08:27:44
问题 I use ASP.NET C# MVC3 with razor templates and I want to know the following: I have a DevExpress GridView in which I can select rows. When selected, I want to pass them into a Javascript variable. How do I do this? And what if I have selected multiple rows at the same time, can I get them in an array or something? Edit: Thank you for the comment, I now have the following 'JQuery' function: $(function () { // Verwijder functie $('#select').click(function () { var Delete = confirm("Weet u zeker

How to hide column of devexpress XtraGrid

懵懂的女人 提交于 2019-12-22 08:07:37
问题 Hai all, Am using devexpress XtraGrid in C#.NET application.On run time i want to hide 1 column of XtraGrid and access that column in code behind page.And please help to access rows and columns of XtraGrid. Thank You 回答1: You should use the View.Columns[someFieldName].Visible property to hide / show a column. Please also refer to the following topic: http://documentation.devexpress.com/#WindowsForms/CustomDocument753 回答2: To hide a column from user set columns visible property to False as

Get EditValue from control's DataBindings

北战南征 提交于 2019-12-22 00:13:45
问题 I have TextEdit Control and it is bound to a class field from Datasource, so it is looks like EditValue - bindingSource1.MyClassField . Can I somehow get the type of EditValue via code? I've found that textEdit1.DataBindings[0].BindableComponent has EditValue that I need, but it seems to be private, and textEdit1.DataBindings[0].BindingMemberInfo contains only string values. 回答1: you have to cast the bindingsource current to a DataRowView. object Result = null; DataRowView drv =

Legacy Security Policy in Visual Studio 2010 and COM References

半城伤御伤魂 提交于 2019-12-21 19:58:13
问题 I have a project using DevExpress 8.3 (2008.3) which I just recently upgraded to use VS 2010. After doing so, everything compiled fine but I got errors trying to use the designer. I resolved this as described here: NetFx40_LegacySecurityPolicy in design-time mode by adding <NetFx40_LegacySecurityPolicy enabled="true"/> to my devenv.exe.config. Designer works fine now, but some of the projects in the solution which have COM references no longer compile, with the exception: The

Can I change the key bindings on the free version of CodeRush Express for Visual Studio?

点点圈 提交于 2019-12-21 12:31:05
问题 Note: I've tried posting on the coderush/devexpress forums and as is usual for that kind of thing, received no response. Hopefully some SO users use coderush express and can possibly help? Hi. I've just installed the free CodeRush XPress addon, and it looks nice, however I can't figure out how to change the key bindings! I find Ctrl+Alt+F awkward to hit, and Shift+Enter conflicts with an existing keybinding I have had setup for the last 3 years so am really resistant to CodeRush overwriting

WinForm DevExpress使用之ChartControl控件绘制图表二——进阶

萝らか妹 提交于 2019-12-21 11:29:20
1. 多坐标折线图 在这个项目中,我需要做不同采集地方和不同数据类型的数据对比,自然而然就用到了多重坐标轴,多重坐标轴可以是多个X轴,也可以是Y轴,它们的处理方式类似。本文通过项目中的实际例子介绍多重Y轴的形式,希望给大家有一个很好的参考。ChartControl图表控件提供了SecondaryAxisY对象来处理多重坐标的问题。CreateAxisY用来创建一个多重坐标轴的代码如下所示,注意这里多重坐标,使用了和Series一样的View.Color颜色,这样方便区分。 /// <summary> /// 创建图表的第二坐标系 /// </summary> /// <param name="series">Series对象</param> /// <returns></returns> private SecondaryAxisY CreateAxisY(Series series) { SecondaryAxisY myAxis = new SecondaryAxisY(series.Name); ((XYDiagram)chartControl1.Diagram).SecondaryAxesY.Add(myAxis); //判断图形对象是柱状图还是折线图 string type = series.View.GetType().ToString(); if (type ==

DevExpress控件使用经验总结

半世苍凉 提交于 2019-12-21 11:27:00
DevExpress控件使用经验总结 DevExpress是一个比较有名的界面控件套件,提供了一系列的界面控件套件的DotNet界面控件。本文主要介绍我在使用DevExpress控件过程中,遇到或者发现的一些问题解决方案,或者也可以所示一些小的经验总结。总体来讲,使用DevExpress控件,可以获得更高效的界面设计以及更美观的效果。本文主要通过给出相应的例子以及相关界面效果来说明问题,希望大家能够从中获得好的知识和思路。 1、 应用Office2007和Office2010的界面主题 开始使用DevExpress的时候,发现程序界面效果好像没有出现Office的样式,只是有几种可怜的内置效果。经过查找发现需要在入口函数里面添加几行代码,如下所示。 DevExpress.UserSkins.OfficeSkins.Register(); DevExpress.UserSkins.BonusSkins.Register(); DevExpress.Skins.SkinManager.EnableFormSkins(); 指定界面主题效果,可以通过代码设置,指定主题的名称即可。 UserLookAndFeel.Default.SetSkinStyle( " Office 2010 Blue " ); 或者在界面中添加一个控件 DefaultLookAndFeel