xtragrid

XtraGrid column checked list filter problem

雨燕双飞 提交于 2019-12-10 11:49:47
问题 I am using XtraGrid in my application. I have shown checked list box with unique values for the column filter. Now, I want to enumerate which Items were checked once the dialog disappears after clicking OK button. How to do this? Thanks, Omky 回答1: While I don't know the exact implementation of your checked listbox in the filter popup, you can handle the ColumnFilterChanged event on the GridView. Then, I suggest that you analyse the FilterCriteria of your column and see which value are being

XtraGrid - Export To Excel

二次信任 提交于 2019-12-08 07:26:55
问题 I'am using Developer Express XtraGrid Component to show some data. I have 2 XtraGrid on my Windows Application Form. Both grids have more than 200k+ lines, and 8 columns of data, and I have export to excel button. There are two ways (as I know) for exporting grid data to excel. 1- grid.ExportToXls(); or grid.ExportToXlsx(); 2- Using Office Interop, and OpenXML Utilities If I use grid.ExportToXls(); or grid.ExportToXlsx(); , the process time is faster than Office Interop Codes (for arround 2k

XtraGrid - Export To Excel

若如初见. 提交于 2019-12-08 04:33:28
I'am using Developer Express XtraGrid Component to show some data. I have 2 XtraGrid on my Windows Application Form. Both grids have more than 200k+ lines, and 8 columns of data, and I have export to excel button. There are two ways (as I know) for exporting grid data to excel. 1- grid.ExportToXls(); or grid.ExportToXlsx(); 2- Using Office Interop, and OpenXML Utilities If I use grid.ExportToXls(); or grid.ExportToXlsx(); , the process time is faster than Office Interop Codes (for arround 2k lines of data). But, this method can be used for just 1 grid. So result appears on 2 different Excel

How to add a weighted average summary to a DevExpress XtraGrid?

做~自己de王妃 提交于 2019-12-06 10:53:38
问题 The DevExpress Grid (XtraGrid) allows grids and their groups to have summary calculations. The available options are Count, Max, Min, Avg, Sum, None and Custom. Has anyone got some sample code that shows how to calculate a weighted average column, based upon the weightings provided as values in another column? 回答1: I ended up working this out, and will post my solution here in case others find it useful. If a weighted average consists of both a value and a weight per row, then column that

How to add a weighted average summary to a DevExpress XtraGrid?

 ̄綄美尐妖づ 提交于 2019-12-04 16:10:44
The DevExpress Grid (XtraGrid) allows grids and their groups to have summary calculations. The available options are Count, Max, Min, Avg, Sum, None and Custom. Has anyone got some sample code that shows how to calculate a weighted average column, based upon the weightings provided as values in another column? I ended up working this out, and will post my solution here in case others find it useful. If a weighted average consists of both a value and a weight per row, then column that contains the value should have the weight GridColumn object assigned to its Tag property. Then, this event

How include a image in devexpress datagrid

≡放荡痞女 提交于 2019-12-04 10:54:42
How can set icon in Dev express data grid depending on the value returning from Database Saif Khan Here are the steps. Add an ImageCollection to yout form and add some icons 16x16 to it. Add a column to the Grid for the icons. Set the column's fieldName to image (whatever you like). Set the column's UnboundType to Object. Add a repositoryItemPictureEdit to the column's columnEdit. All the above can be done in the designer. Then do the following private void gridView1_CustomUnboundColumnData(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDataEventArgs e) { if (e.Column == colImage1 &

Create BandedGridView for DevExpress XtraGrid

℡╲_俬逩灬. 提交于 2019-12-01 23:56:07
问题 I would like to know how the XtraGrid and the BandedGrid play togehter and are bound to the underlaying data. The documentation has some explanatory tl;dr-text but i am missing a full working example to set it up in code. So it took me about 2 hours to figure it out. Based on this blog entry i would like to post my answer here. If there is a better way to put the pieces together as in my answer below i would love to know about it. 回答1: First you have to know that you can bind a plain

Create BandedGridView for DevExpress XtraGrid

隐身守侯 提交于 2019-12-01 20:47:44
I would like to know how the XtraGrid and the BandedGrid play togehter and are bound to the underlaying data. The documentation has some explanatory tl;dr-text but i am missing a full working example to set it up in code. So it took me about 2 hours to figure it out. Based on this blog entry i would like to post my answer here. If there is a better way to put the pieces together as in my answer below i would love to know about it. First you have to know that you can bind a plain DataTable to the XtraGrid and that the creation of the banded grid is independent. Below you can see a new instance

DevExpress XtraGrid Control with checkBoxEdit column

限于喜欢 提交于 2019-12-01 12:11:09
I've a DevExpress XtraGrid control with three columns and a unbound checkBoxEdit column for users to select when deleting items from the grid. I'm able to add the checkBoxEdit on the xtraGrid. However, i don't have any idea as to how i can get the selected lists' primary key(s) to be deleted. Any idea is highly appreciated. Thanks I believe you can use the following approach: void InitGrid() { gridControl1.DataSource = new List<Person> { new Person(){ ID = 0 }, new Person(){ ID = 1 }, new Person(){ ID = 2 } }; gridView.Columns["ID"].Visible = false; gridView.Columns.Add(new DevExpress.XtraGrid

DevExpress XtraGrid Control with checkBoxEdit column

陌路散爱 提交于 2019-12-01 09:54:01
问题 I've a DevExpress XtraGrid control with three columns and a unbound checkBoxEdit column for users to select when deleting items from the grid. I'm able to add the checkBoxEdit on the xtraGrid. However, i don't have any idea as to how i can get the selected lists' primary key(s) to be deleted. Any idea is highly appreciated. Thanks 回答1: I believe you can use the following approach: void InitGrid() { gridControl1.DataSource = new List<Person> { new Person(){ ID = 0 }, new Person(){ ID = 1 },