devexpress

How to Find a Control that is inside DataTemplate & assign Value in WPF?

二次信任 提交于 2019-12-02 16:06:14
问题 I have a DataTemplate which is binded to Grid Group Header Section. There are four TextBlock in DataTemplate from one of TextBlock contains the Grid Header Column Value. Now, I want to Split this TextBlock Value into three and assign this value to other three TextBlock from Code Behind. Is it Possible? <DataTemplate x:Key="descriptionHeader"> <!--<dxg:GroupGridRowContent> <TextBlock Background="Yellow" Text="{Binding DisplayText}" ></TextBlock> </dxg:GroupGridRowContent>--> <Border

【DevExpress v17.2新功能预告】DevExtreme ASP.NET MVC新的强类型HTML Helpers

馋奶兔 提交于 2019-12-02 15:44:40
在ASP.NET MVC中构建视图时,强类型HTML helpers非常有用。像@Html.TextBoxFor(m => m.FirstName)这样内置的Helper方法已经存在很长时间了,它们提供诸如视图编译时间检查、Razor支持等优点,并支持使用数据注释来自动配置重要的选项,如验证规则。 自从我们发布DevExtreme ASP.NET MVC控件以来,它们已经包含了一套HTML helper方法来帮助您完成设置DevExtreme编辑器的工作。 例如在这里,我们创建一个DevExtreme MVC DateBox控件,该控件将从模型绑定到OrderDate字段中: @Html.DevExtreme().DateBoxFor(m => m.OrderDate) 更多的Lambda表达式 在下一个主要版本v17.2中,我们扩展了在HTML helpers中使用表达式的功能。已经添加了更多的lambda表达式到更多的小部件中,这允许使用它们来配置项目,如: DataGrid and TreeList columns DataGrid summaries PivotGrid fields Items of our Form control 因此,DataGrid控件现在可以使用以下语法来声明: 1 2 3 4 5 6 7 8 9 10 11 12 @(Html

Masking Account number to View only last 4 digits in DevExpress GridViewDataColumn

≡放荡痞女 提交于 2019-12-02 15:37:45
问题 I need to add a Mask/DisplayFormatString to view only last 4 digits in DevExpress GridViewDataColumn. As an example if the real account number is 123456789 . Then it should display as *****6789 . Can you please help me with this. <dx:GridViewDataColumn Caption="Bank Account Number" FieldName="BankAccountNumber"></dx:GridViewDataColumn> 回答1: As far as I know there is no such native display format feature in ASPxGridView which obscures a string partially for certain first characters (a password

Masking Account number to View only last 4 digits in DevExpress GridViewDataColumn

…衆ロ難τιáo~ 提交于 2019-12-02 13:51:20
I need to add a Mask/DisplayFormatString to view only last 4 digits in DevExpress GridViewDataColumn. As an example if the real account number is 123456789 . Then it should display as *****6789 . Can you please help me with this. <dx:GridViewDataColumn Caption="Bank Account Number" FieldName="BankAccountNumber"></dx:GridViewDataColumn> As far as I know there is no such native display format feature in ASPxGridView which obscures a string partially for certain first characters (a password mask is available but obscures all characters), however you can handle ASPxGridView.CustomColumnDisplayText

Find checkbox control in ASPxGridView

ε祈祈猫儿з 提交于 2019-12-02 12:37:08
问题 I have a AspxGridView that has a checkbox dataitemTemplate inside a gridViewDatacheckColumn. Now I want to find that control for each row and uncheck/check them on runtime. Here's my code for the ASPxGridView: <dx:ASPxGridView ID="RadGrid2" runat="server" AutoGenerateColumns="False" ClientInstanceName="grid" KeyFieldName="StoreID" SettingsPager-Mode="ShowAllRecords" Width ="50%"> <Settings ShowVerticalScrollBar="true" /> <Columns> <dx:GridViewDataCheckColumn Caption="#" VisibleIndex="0" Width

ASPxGridView Find control (Checkbox) and Check if it is checked or not

纵然是瞬间 提交于 2019-12-02 12:30:57
I have a checkbox (you can see below) nested in detailed grid. How can I find it on updating click and check if checked or not? I'm using DevExpress GridView <dxwgv:GridViewDataCheckColumn Visible="false" VisibleIndex="14"> <EditFormSettings Visible="True" /> <EditItemTemplate> <dxe:ASPxCheckBox ID="ASPxCheckBox1" Text="" runat="server"> </dxe:ASPxCheckBox> </EditItemTemplate> </dxwgv:GridViewDataCheckColumn> Estrella Protected Sub grid_RowInserting(ByVal sender As Object, ByVal e As DevExpress.Web.Data.ASPxDataInsertingEventArgs) Handles grdProyectos.RowInserting Dim grid As ASPxGridView =

DevExpress GridControl Unbound Columns

拥有回忆 提交于 2019-12-02 11:35:58
I would like to know how to properly add a unbound column into a gridview. I've added a unbound column in the designer (set the unbound type, display format and all) but whenever I run the application, try to change the value of the unbound column and loses its focus the value is not saved (even the display format is not displaying correctly when I'm changing it). I must be doing something wrong. I need help guys! Much appreciated! Unbound column does not provide a storage to save its values. Instead, the GridView publishes the CustomUnboundColumnData event which can be used to provide data to

c# adding float numbers behave weirdly [duplicate]

与世无争的帅哥 提交于 2019-12-02 10:03:25
This question already has an answer here: Can anyone explain this floating point weirdness to me? 3 answers I am trying to add a row's cells and display the total in a new cell in a grid. I am using gridControl from DevExpress. The grid has 12 columns representing the months in a year and I want to add the months values and display the total in the 13th column. My problem is that if I have a float value of "111,22", it is added as "111,2188" to the database and displayed without the precision in the 13th cell. So, I have two problems. First one is "why does it insert it as 111,2188 to database

Cannot find RowClickEventArgs in DevexpressGridView

与世无争的帅哥 提交于 2019-12-02 09:56:06
I'm a new to DevexpressGridView . I have a Dev Grid in my webpage, and I want to handle the RowClick Event like: private void GridView1_RowClick(object sender, RowClickEventArgs e) { if(a row is selected)// how??? Button1.Visible=true; } But when it has an error: "cannot resolve symbol RowClickEventArgs" , this is first time I know about Devexpress. So I wonder if my RowClickEventArgs syntax is wrong??? I've tried to find the solution by searching google for many times, but I still cannot get the right thing. Can you give me a right syntax??? And one more question, how can I check " is there

How to use SubReport in XtraReport?

旧城冷巷雨未停 提交于 2019-12-02 07:13:41
问题 I have a main Report which consist of (Detail Report) Transaction # Amount Due PaymentType Money Tendered and I have another report which consist of items ordered (Items Report) Transaction # ItemName Quantity Amount Due My question is how to combine the Items Report to the Detail Report My Desired format is Transaction # AmountDue PaymentType MoneyTendered [Detail Report]==> Link through ID 回答1: Have a look here. Creating a master-detail report with the use of subreports requires the