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设值到当前行

1private void repositoryItemLookUpEdit1_EditValueChanged(object sender, EventArgs e)
2{
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

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

 

posted on 2009-11-06 18:55  Brian.Zhao  阅读(1149)  评论(0)    收藏  举报