Devexpress 使用总结

     关于GridControl的使用

          1.绑定数据源

               this.gridControl.DataSource = GetGroupMail();

          2.将Gridcontrol里面的gridview 列重新排列

               this.gridview1.PopulateColumns();

          得出当前行的Cell值

               string strValue=gridView1.GetDataRow(gridView1.FocusedRowHandle)["列名"].ToString();

 

     关于From样式的调整用

               this.LookAndFeel

 

     消息通知框代码

               try
            {
                //do some thing...
                XtraMessageBox.Show(this.LookAndFeel, "   Flash OK  ", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(this.LookAndFeel, ex.Message, "Notice", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
            }
             finnly
{
                       }

posted @ 2009-01-04 20:45  Popla  阅读(464)  评论(0)    收藏  举报