如何使用Devexpress(Windows窗体)创建报告?
如果可能的话,我愿意一步一步地知道
我尝试从XtraReport的行(在哪里单击)获取所有值。
我不知道为什么,但是xrTableRow1_PreviewClick和xrTable1_PreviewClick不起作用。
仅适用于xrTableCell4_PreviewClick。通过“ e.Brick.Text”,我只能在单元格中获得价值。
private void xrTableCell1_PreviewClick(object sender, PreviewMouseEventArgs e)
{
var tmp = e.Brick.Text;
}
Run Code Online (Sandbox Code Playgroud)
如果我尝试:
GetCurrentRow()
Run Code Online (Sandbox Code Playgroud)
它仅给出第一行。这不是我所需要的。)
如何从点击所在的行中获取所有值?或者如何获得点击所在的行索引?
我的报告在设计器中看起来像:

提前致谢!
我有一个小问题ComboBoxEdit(DevExpress.XtraEditors)。我无法为SelectedIndex我的ComboBoxExit.
ComboBoxEdit combo = new ComboBoxEdit();
ComboBoxItemCollection coll = combo.Properties.Items;
coll.BeginUpdate();
try
{
coll.Add(new PersonInfo("Sven", "Petersen"));
coll.Add(new PersonInfo("Cheryl", "Saylor"));
coll.Add(new PersonInfo("Dirk", "Luchte"));
}
finally
{
coll.EndUpdate();
}
combo.SelectedIndex = -1; Comboboxedit1.Properties.Items.Add(combo);
Run Code Online (Sandbox Code Playgroud)
它不起作用,只是添加显示:

我已经使用 Devexpress SimpleButton 完成了一个自定义按钮,我想像这样更改按钮的颜色,但它不起作用。
this.Button.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
this.Button.BackColor = Color.Pink;
Run Code Online (Sandbox Code Playgroud)
我对设计师做了同样的事情,它工作得很好,但现在我想以编程方式完成它,但它不起作用。提前致谢。
我有以下代码
procedure TfrmJsApplications.colMaintStylesGetContentStyle(
Sender: TcxCustomGridTableView; ARecord: TcxCustomGridRecord;
AItem: TcxCustomGridTableItem; out AStyle: TcxStyle);
var
aColumn: TcxCustomGridTableItem;
aValue: Variant;
begin
inherited;
try
aColumn := Sender.FindItemByName('colApplication_Doc');
aValue := aRecord.Values[aColumn.Index];
if VarToStr(aValue) <> '' then
colMaint.Properties.Buttons[0].Caption := 'Redigere'
else
colMaint.Properties.Buttons[0].Caption := 'Opret'
except
on E:exception do
Logfile.Error('F_JsApplications.colMaintStylesGetContentStyle: ' + E.Message);
end;
Run Code Online (Sandbox Code Playgroud)
在cxGrid中的列上运行.但由于某种原因,我根本无法弄清楚这一行
if VarToStr(aValue) <> '' then
Run Code Online (Sandbox Code Playgroud)
使功能崩溃.我知道当aValue成为Null值时,但据我所知,在这种情况下VarToStr应返回''
我使用的是台式机的DevExpress双赢的UI形式,我想实现像搜索栏这样:

在DevExpress中有没有办法像这个插件一样WinForms?
如果我使用某人的devExpress合法副本的安装程序,它将如何工作?
它是合法版还是试用版?
devexpress ×8
c# ×4
winforms ×2
delphi ×1
gridviewrow ×1
installer ×1
licensing ×1
reporting ×1
simplebutton ×1
tcxgrid ×1
variant ×1