private void bbiExport_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { // Check whether the GridControl can be previewed. if (!TLItems.IsPrintingAvailable) { MsgDlg.Show("The 'DevExpress.XtraPrinting' library is not found", MsgDlg.MessageType.Warn); return; } // Open the Preview window. TLItems.ShowRibbonPrintPreview(); }
void LoadUserData(int RuleID) { ruleDetailTableAdapter.FillByRoleID(dsData.RoleDetial, RuleID); foreach (FixedAssets.Datasource.dsData.RoleDetialRow row in dsData.RoleDetial) { TreeListNode node = (TreeListNode)TLItems.FindNodeByFieldValue("ID", row.MenuItemName); if (node != null) { node.SetValue(tlcSelect, row.Selecting); node.SetValue(tlcInsert, row.Inserting); node.SetValue(tlcUpdate, row.Updateing); node.SetValue(tlcDelete, row.Deleting); } } }