devexpress

Create table programmatically

泄露秘密 提交于 2019-12-12 12:26:02
问题 I am working on devexreport and I want to create a table programmatically I use these codes but have a little problem. DevExpress.XtraReports.UI.XRTable tbl = new XRTable(); DevExpress.XtraReports.UI.XRBarCode xrBarCode = new XRBarCode(); Detail1.Controls.Add(tbl); tbl.Location = new System.Drawing.Point(358, 17); tbl.Size = new System.Drawing.Size(358, 50); tbl.Borders = (DevExpress.XtraPrinting.BorderSide) (((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)

How do I color a cxgrid based on table value?

孤人 提交于 2019-12-12 11:35:41
问题 I would like all rows where in particular field name 'hello' is present to get colored green. I tried this on customdrawcell : if abstable1.fieldbyname('somename').asstring = 'Hello' then cxgrid.canvas.brush.color:=clGreen But it wont work... what am I missing here ? 回答1: Don't try to change canvas colors in the Grid. Rather--and I find this to always be true--change colors in the View 's OnDrawCell handler, as in this example: procedure T_fmTabSnapList.View1CustomDrawCell(Sender:

Panel cover the rest control when setted display:block

好久不见. 提交于 2019-12-12 06:58:06
问题 The code below seems to be so long, but it's not hard to understand what I did in that code. Hope you can give me a solution. I have a panel ID="ASPxPanel2" with stype set to display:none . After I click on button New --> the panel will be displayed. When I set the ASPxPanel2 display:block as default, the Panel1 will be displays below the Panel2 . But when I set Panel2 display:none and then set it display:block again in code behind---> the Panel2 display cover Panel1 . <asp:Content ID=

Retain TextBox value when CheckBox is checked

余生长醉 提交于 2019-12-12 06:48:55
问题 I have a set of TextBox that will automatically compute the 'total' based on 'gross amount' ( user input ). Each text box has a condition that is based on another text box. My computation works perfectly, but I need a CheckBox to allow the user to decide whether to remove the 'tax' or retain it. Every time the CheckBox is checked, the value of the text boxes that I have became zero. Can anyone help me with this? Here is what I have so far. JavaScript $(document).ready(function () { Number

Cannot call a JS function from code behind

血红的双手。 提交于 2019-12-12 06:48:52
问题 I am trying to submit a JS function from the code behind of a "DisplayBrandGridView_RowInserting" event. When the RegisterStratupScipt runs, nothing happens and the JS function is not even hit. After a record is inserted into the DB (which is successful from within this event), I need to immediately execute the JS function which will show a button to add data to another table. Note that this JS function works fine when executed from the client side. I don't care whether it's executed from the

How to show a message box from edit/add new button click of a devexpress gridview

房东的猫 提交于 2019-12-12 05:43:09
问题 I have a devexpress nested gridview. Both the master and detail gridviews have link buttons for edit and add new activities. After either inserting new row or updating an existing row, I have to show a message box saying "Your update has been saved successfully". This could be a simple javascript alert box or a message displayed on the page itself. Both the gridviews use objectdatasource. I tried the following codes in the RowUpdated event of both the gridview and the objectdatasource: System

Design and Modelling for DexExpress eXpressApp Framework

天涯浪子 提交于 2019-12-12 04:59:55
问题 The DevExpress XAF does much basis work for you, it creates a database based on your business objects, and dynamically generates a UI based on these, with basic functions like add, delete, sort etc. already present. This leaves me wondering how to go about properly designing and modelling an application built on this framework. I could only model my business objects, or I could identify functions provided by the framework and include them in a details model down to sequence diagram level, but

Could not load file or assembly DevExpress version 11.1 in asp.net(vb)

北城以北 提交于 2019-12-12 04:55:51
问题 I am working on project which is build on 2.0 framework of .net We were using devExpress version 7 before but the some controls of devExpress 7 doesn't supports modern browsers. So i installed and included devExpress version 11 assemblies. I copy/pasted assembly files of version 2011 into Bin folder of my project. I added reference in web.config file In web.config, I have now <add assembly="DevExpress.Data.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A"/> <add

how can I add a new row to datagrid at every button click in winform

我是研究僧i 提交于 2019-12-12 04:31:58
问题 I want to add new row to gridcontrol at every button click. I tried many ways but no success. I am sending my code. private void B_Click(object sender, EventArgs e) { Button bt = (Button)sender; int productId = (int)bt.Tag; AddProductDataContext db = new AddProductDataContext(); decimal Quantity; decimal.TryParse(txtCalculator.Text, out Quantity); gridControl1.DataSource = from inv in db.Inventories where inv.RecId == productId select new { inventoryName = inv.InventoryName, Quantity, Total =

Checking if a aspxgridview Master-Detail has any row checked in Client Side

a 夏天 提交于 2019-12-12 04:31:55
问题 I need to check if there is any row checked in a Master-Detail AspxGridView. With the master I can use grid.GetSelectedRowCount()>0 But how can I check it with the detail rows using JS? Thanks in advance 回答1: to accomplish this you need to assign a unique ClientInstanceName to each detail grid and then access that particular detail grid on client side using the assigned ClientInstanceName, which in turn should include the master's grid row ID part, ie detailGrid_1 for the first row,