DevExpress常见问题

Dev分发
对于分发有2种形式
1.将所需的dll放在exe的同一目录下.
2.将dll拷贝到C:\WINDOWS\assembly目录中(GAC)  
AspxGridview滚动条设置
< Settings ShowVerticalScrollBar  = " true "  VerticalScrollableHeight =   " 200 " />

垂直滚动条设置:  

水平滚动条

< div style = " overflow: scroll; width: 450px; height: auto " >
    
< dxwgv:ASPxGridView >
     
    
</ dxwgv:ASPxGridView >
</ div >  

AspxGridview EditForm中文显示垂直 的属性:

EditFormCaptionStyle - Wrap = " false "

Gridview中LookUpEdit设值到当前行

1 private   void  repositoryItemLookUpEdit1_EditValueChanged( object  sender, EventArgs e)
2 ExpandedBlockStart.gifContractedBlock.gif {
3    //  Q1:how can users from table4 in accordance with the choice, so that the value of b3 value = d3?
4    ColumnView view = gridControl1.FocusedView as ColumnView;
5    DevExpress.XtraEditors.LookUpEdit editor = (sender as DevExpress.XtraEditors.LookUpEdit);
6    DataRowView row = editor.Properties.GetDataSourceRowByKeyValue(editor.EditValue) as DataRowView;
7    object value = row["d3"];
8    view.SetRowCellValue(view.FocusedRowHandle, view.Columns["b3"], value);
9}
 

当用户在当前行用lookupEdit进行选择时,如何获得当前行的上一行数据

 1 DevExpress.XtraEditors.LookUpEdit editor = (sender as  DevExpress.XtraEditors.LookUpEdit);
 2 int index = editor.Properties.GetDataSourceRowIndex(editor.Properties.Columns["d2"
].FieldName, editor.EditValue);
 3 index--
;
 4 if (index < 0return
;
 5 object obj = (editor.Properties.DataSource as
 BindingSource)[index];
 6 

 7 object Pre = ((DataRowView)obj).Row.ItemArray[2]; DevExpress.XtraEditors.LookUpEdit editor = (sender as  DevExpress.XtraEditors.LookUpEdit);
 8 int index = editor.Properties.GetDataSourceRowIndex(editor.Properties.Columns["d2"
].FieldName, editor.EditValue);
 9 index--
;
10 if (index < 0return
;
11 object obj = (editor.Properties.DataSource as
 BindingSource)[index];
12 object Pre = ((DataRowView)obj).Row.ItemArray[2];

Lc.exe已退出,代码 -1
出现这个问题一般是由于以前试用版的时候生成过licx,如今版本更新后,licx文件不吻合,删除重新编译就能避免  不会成盗版用户 只要有需要授权的商业组件会重新生成
在ASPxGridView怎样显示RowNumber

1 protected   void  ASPxGridView1_CustomColumnDisplayText( object  sender, ASPxGridViewColumnDisplayTextEventArgs e)
2 ExpandedBlockStart.gifContractedBlock.gif {
3    if (e.Column.Name == "Calc")
4        e.DisplayText = (e.VisibleRowIndex + 1).ToString();
5}

 

转载于:https://www.cnblogs.com/brianzhao/archive/2009/11/06/1597626.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值