您好我需要使用DevExpress控件将项目部署到IIS 6.0服务器.项目加载正常,直到我添加DevExpress控件.尝试加载网站时,我收到错误
无法加载文件或程序集'DevExpress.Web.v9.3,Version = 9.3.4.0,Culture = neutral,PublicKeyToken = b88d1754d700e49a'或其依赖项之一.该系统找不到指定的文件
我究竟做错了什么?我已经尝试在服务器上安装控件,并且只是将所有的程序集dll复制到应用程序的bin /文件夹中,但我不能让这个错误消失.我如何让它工作?
嗨,我想将枚举与组合框的描述绑定在一起:
我得到了下一个枚举:
public enum ReportTemplate
{
[Description("Top view")]
1,
[Description("Section view")]
2
}
Run Code Online (Sandbox Code Playgroud)
我试过这个:
<ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type System:Enum}"
x:Key="ReportTemplateEnum">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="Helpers:ReportTemplate" />
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<Style x:Key="ReportTemplateCombobox" TargetType="dxe:ComboBoxEditSettings">
<Setter Property="ItemsSource"
Value="{Binding Source={x:Type Helpers:ReportTemplate}}"/>
<Setter Property="DisplayMember" Value="Description" />
<Setter Property="ValueMember" Value="Value" />
</Style>
Run Code Online (Sandbox Code Playgroud)
不能成功做到这一点1知道一个简单的解决方案吗?
提前致谢!
我现在看看XtraReports报告工具,还有一些我还没有得到的东西.
如何设置某个字段的数据源(在报告中显示为我猜的标签),而不必在设计时构建连接,适配器和数据集,而是以编程方式进行.
例如,我可以有一个名为"User"的表,其中包含3个字段:UserId,Username和Password.在报表设计器中,我放置3个标签(这是我的问题)设置数据源以显示3个数据库字段.然后,在后面的代码中,我创建一个连接,执行命令,填充数据集,创建一个报表实例,将数据表传递给它并显示报表预览.
这可能吗?如果不够清楚,请告诉我.
谢谢!
DevExpress数据网格(WinForms)有什么好的免费替代品吗?
我正在寻找WinForms数据网格和数据编辑器控件.一些好的,您可以按列排序和分组并编辑网格内的数据.
如何更改DevExpress网格视图的字体颜色?我发现的所有解决方案都是关于改变前景色和背景色.
我希望有一个红色字体,以防单元格中的值为负.
有什么建议吗?
我想做DevExpress控件的自动测试.
我发现了一些像guia,NUnitForm等框架,但它们都是标准的WPF控件.
有没有其他框架可以帮助我测试DevExpress控件?
我想将一个sql参数从用户表单传递到我的报表类但是它不起作用并且它不会创建报表,当我在向报表类添加ID参数后再次打开报表设计器选项卡时,它会刷新报表并删除我的组件.
问题是什么?
这是我的报告类:
public SodoorZemanatName(long ID)
{
InitializeComponent(ID);
}
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Designer generated code
private void InitializeComponent(long ID)
{
this.components = new System.ComponentModel.Container();
DevExpress.DataAccess.Sql.CustomSqlQuery customSqlQuery1 = new DevExpress.DataAccess.Sql.CustomSqlQuery();
DevExpress.DataAccess.Sql.QueryParameter queryParameter1 = new DevExpress.DataAccess.Sql.QueryParameter();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SodoorZemanatName));
this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
this.detailBand1 = new DevExpress.XtraReports.UI.DetailBand();
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.sqlDataSource2 = new DevExpress.DataAccess.Sql.SqlDataSource(this.components);
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
this.topMarginBand1.HeightF = 100F;
this.topMarginBand1.Name = "topMarginBand1";
this.detailBand1.HeightF = 100F; …Run Code Online (Sandbox Code Playgroud) Hai all,我在C#.NET项目中使用DevExpress LookupEdit,同时设置LookupEdit的Display Member和Value成员属性.如何从DevExpress LookupEdit中获取选定值.
谢谢
我创建了一个绑定到bindingSource的XtraTreeList控件,它使用了一个自定义对象列表.MultiSelect属性设置为true,因此当用户选择多个节点时,我想定义哪些对象绑定到它们.但不幸的是,我没有找到任何与包含数据相关的属性(除了过时的数据并且始终为null).我也尝试使用TreeListNode.GetValue,但它只给我一个显示值而不是对象本身
有没有办法访问绑定到XtraTreeList中的节点的对象?
最后一种方法是使用Unbound模式并手动创建它们,但我想知道是否有一个简单的解决方案
我们正在使用棱镜和WPF来构建应用程序.最近我们开始使用UI Automation(UIA)来测试我们的应用程序.但是当我们运行UIA测试时会发生一些奇怪的行为.这是简化的shell:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock
Grid.Row="0" Grid.Column="0"
Name="loadingProgressText"
VerticalAlignment="Center" HorizontalAlignment="Center"
Text="Loading, please wait..."/>
<Border
Grid.Row="0"
x:Name="MainViewArea">
<Grid>
...
</Grid>
</Border>
<!-- Popup -->
<ContentControl
x:Name="PopupContentControl"
Grid.Row="0"
prism:RegionManager.RegionName="PopupRegion"
Focusable="False">
</ContentControl>
<!-- ErrorPopup -->
<ContentControl
x:Name="ErrorContentControl"
Grid.Row="0"
prism:RegionManager.RegionName="ErrorRegion"
Focusable="False">
</ContentControl>
</Grid>
Run Code Online (Sandbox Code Playgroud)
在我们的应用程序中,我们使用图层(Popup和ErrorPopup)来隐藏MainViewArea,以拒绝访问控件.为了表明Popup,我们使用下一个方法:
//In constructor of current ViewModel we store _popupRegion instance to the local variable:
_popupRegion = _regionManager.Regions["PopupRegion"];
//---
private readonly Stack<UserControl> _popups = new Stack<UserControl>();
public …Run Code Online (Sandbox Code Playgroud) devexpress ×10
c# ×7
.net ×3
winforms ×3
wpf ×2
combobox ×1
data-binding ×1
datagrid ×1
deployment ×1
enumeration ×1
gui-testing ×1
iis ×1
iis-6 ×1
report ×1
testcafe ×1
ui-testing ×1
vb.net ×1
webforms ×1
xaml ×1
xtragrid ×1
xtrareport ×1
xtratreelist ×1