devexpress

Have cxGrid expand current date

ぐ巨炮叔叔 提交于 2019-12-11 09:48:29
问题 I made my grid group by date (grabbed the column name and dragged it to where it says 'group by that column'). However, when the grid is displayed all the dates are 'closed' so I must expand them to see data. That is OK but I wonder if it is possible to have current date expanded already (all other should remain closed !) so I do not have to click the expand cross? 回答1: try this, you can put the code in other event handler like a TButton for example procedure TForm1.FormCreate(Sender: TObject

How to uncheck all CheckBox in side datatemplate of gridcontrol on button click in WPF using C#?

江枫思渺然 提交于 2019-12-11 08:55:37
问题 I have a CheckBox in GridControl Column. After performing some operation the selected checkboxes inside GridControl must be UNCHECKED on button click in WPF . Any idea? <dxg:GridControl Name="grdInfill" Height="700" VerticalAlignment="Center"> <dxg:GridControl.Columns> <dxg:GridColumn AllowEditing="True"> <dxg:GridColumn.CellTemplate> <DataTemplate> CheckBox Name="chkSelect" HorizontalAlignment="Center" IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsSelected,Mode

Selection changed event of ComboBoxEditSettings in a Devexpress gridcontrol(Silverlight)

谁都会走 提交于 2019-12-11 07:28:07
问题 I am doin silverlight 4 App. I have devexpress gridcontrol of 5 columns where i have placed ComboBoxEditor in a column . <dxg:GridControl x:Name="grid_currentillnes"> <dxg:GridControl.Columns> <dxg:GridColumn FieldName="Complaints" Header="Complaints/Disease" /> <dxg:GridColumn FieldName="Duration" Header="Duratiion" /> <dxg:GridColumn FieldName="Period" Header="Period" /> <dxg:GridColumn Header="Treatment" FieldName="Treatment"> <dxg:GridColumn.EditSettings> <dxe:ComboBoxEditSettings x:Name=

does DevExpress XtraReports have an easily accessible notion of “current detail report being printed”?

匆匆过客 提交于 2019-12-11 06:55:50
问题 I am printing a details subreport that gets printed let's say 5 times on the overall report, for 5 query results. I compute some stuff for it with my code, and so I use BeforePrint event on an XRTable widget that I have in that subreport. So far so good. What I don't like is that when the BeforePrint executes for that table for the first time and I change its cells' text to something, that this renders on all subsequent instances of this report and table being printed. Now, obviously, since

Is there a way to print the current view for the DevExpress GridControl PrintingSystem?

删除回忆录丶 提交于 2019-12-11 06:31:22
问题 I am currently using DevExpress 10.2 within Visual Studio 2010. I am printing the contents of the GridControl (with both one and two GridViews contained within). This shows all the current visible columns (and not the invisible columns) and all the data in a viewable manner. My issue is the print preview always shows all the grouped rows and the master-detail rows fully expanded. I want to make it so that if the user has none of the groups or rows expanded then the print preview displays the

Pass parameter via context menu to DevExpress TreeListControl

跟風遠走 提交于 2019-12-11 05:53:04
问题 I have a TreeListControl and I will like to pass the selected row as parameter on my context menu. So my control looks like: View: <Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" xmlns:dxt="http://schemas.devexpress.com/winfx/2008/xaml/grid" > <dxt:TreeListControl Name="treeList" ItemsSource="{Binding MyCollection}"> <!-- Context

if a cxBarEditItem1 is a checkbox, how to get it's state?

自作多情 提交于 2019-12-11 05:52:08
问题 On my dxBarManager1Bar1 a cxBarEditItem1 is a checkbox. How can I check it's state (if it's checked or not checked) ? 回答1: For accomplishing your task, you can use the EditValue property. if (cxBarEditItem1.EditValue <> Null) AND (cxBarEditItem1.EditValue = True) then ShowMessage('Checked!') else ShowMessage('Not Checked! (or null)'); Note that EditValue is a Variant property which can also have Null value. 来源: https://stackoverflow.com/questions/41296661/if-a-cxbaredititem1-is-a-checkbox-how

How to find the number of expanded/collapsed master rows and grouped rows in a DevExpress GridView?

孤人 提交于 2019-12-11 05:06:43
问题 I am currently using DevExpress 10.2 within Visual Studio 2010. In a previous question I was trying to print the current user view of a DevExpress GridControl with the user's choice of expanded or collapsed master rows and/or group sections. I was told this was not possible at this time. I have now decided to use the following code: gvPOinvoiceBanded.OptionsPrint.ExpandAllGroups = False gvPOinvoiceBanded.OptionsPrint.ExpandAllDetails = False when I want it to be completely collapsed while

Delphi cxtreelist looping through nodes

心已入冬 提交于 2019-12-11 04:52:05
问题 I have a tcxTreeList with 3 columns the first column has set property of Node.CheckGroupType := ncgCheckGroup; , and 2nd column contains Key of the First root node and third column contains the keys of all child nodes under the root node. How can i get the key of root node whether it is checked or not and keys of all checked child nodes into 2 variables to insert into db and Load back items from keys we get from DB My code for adding items is as below APNode := tv.Add; APNode.CheckGroupType :

add custom button in gridview auto filter row

回眸只為那壹抹淺笑 提交于 2019-12-11 04:49:54
问题 how to add button [x] to clear auto filter so we dont need to press delete or backspace clear the filter. illustration like this for the code iam using for repositoryitemcombobox private void gridView1_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e) { if (gridView1.OptionsView.ShowAutoFilterRow == true) { for (int i = 0; i < gridView1.RowCount; i++) { string code = gridView1.GetDataRow(i)["code"].ToString(); if (!repositoryItemComboBox1.Items.Contains(code)) {