Questions tagged [xtragrid]

Grid control for Windows Forms applications from DevExpress

XtraGrid is a Windows Forms control built from C# by the company DevExpress. It is used for building very rich grid controls for the Windows(R) family of operating systems using the .NET framework. This component is part of WinForms Control Suites a product from DevExpress.

402 questions
3
votes
1 answer

convert custom collection to DataRow

I try to pass the value to DataRow type variable from custom collection like the codes bellow: GridHitInfo downHitInfo = null; DataRow row = gridView3.GetDataRow(downHitInfo.RowHandle); But as I know that if the view's data source is a custom…
3
votes
2 answers

DevExpress GridControl image column displays images like System.Byte[]

I have a table with person data which are Name, Surname, Code and Photo of persons. And when I select persons from table like and send the result to DevExpress GridControl it shows Name, Surname and Code columns. But Photo column displays…
namco
  • 6,208
  • 20
  • 59
  • 83
2
votes
2 answers

Refreshing DevExpress.XtraGrid after adding items to list that was boun to it

I have a List bound to DevExpressXtraGrid like: MyXtraGrid.DataSource = MyList; I have some columns made in XtraGrid designer. Everything is ok and rows were shown in grid, but when I add objects to MyList grid is not refreshed and new…
Dejo
  • 2,078
  • 3
  • 26
  • 38
2
votes
1 answer

Linq - Unexpected uniqueness constraint-type behaviour occurring

I have a database with a simple flyweight table referenced by another table. Let's call them, respectively, Category and Product. The Product table has several columns, one of which is a foreign key column (complete with constraint) to the…
calico-cat
  • 1,324
  • 6
  • 20
  • 36
2
votes
1 answer

Is there any event fired for Xtragrid on removing filters?

I have Xtragrid, when I filter a column on some value it comes as best fit but when I unfilter, it cuts some of the values. To prevent this, I want to do best fit on unfiltering. So, is there any event fired on unfiltering?
Eternal Noob
  • 2,717
  • 5
  • 27
  • 41
2
votes
1 answer

Programmatically create columns in a View

This should be easy. I want to populate a grid with a custom data source at runtime. For some reason, it simply does not work. Running via a unit test [TestMethod] public void Runtest() { TestForm form = new TestForm(); TestControl control…
P.Brian.Mackey
  • 43,228
  • 68
  • 238
  • 348
2
votes
1 answer

How can I get exception details in grid view using server mode?

I have a DevExpress GridView bound to an EntityInstantFeedbackSource. The data loads and pages just fine. My problem occurs when I try to group by a column in the view. All of the rows in the grid disappear and I get an error tooltip. The text in…
kenrogers
  • 1,350
  • 6
  • 17
2
votes
1 answer

DevExpress GridHitInfo on group row

I have drawn a checkbox in devexpress grid group row using the code below. using DevExpress.XtraGrid.Views.Base; using DevExpress.XtraGrid.Drawing; using DevExpress.Utils.Drawing; using DevExpress.XtraGrid.Views.Grid.ViewInfo; using…
balan
  • 179
  • 1
  • 5
  • 11
2
votes
1 answer

DevExpress: Is GridView.RowUpdated supposed to fire for row deletions?

For example I have a KeyDown handler that calls view.DeleteRow(view.FocusedRowHandle) but the RowUpdated event on the gridView does not seem to fire. Am I missing something?
shindigo
  • 1,267
  • 15
  • 29
2
votes
2 answers

How to prevent XtraGrid TextEdit from losing focus when moving cursor beyond contents

I am using an XtraGrid from DeveloperExpress with a column holding strings, edited via a TextEdit control. When a user enters edit mode (the editor is shown), the text is automatically selected, just as it is in for example Windows Explorer when you…
Jakob Möllås
  • 4,239
  • 3
  • 33
  • 61
2
votes
1 answer

XtraGrid row index mismatch after deleteing a row

I am currently using a XtraGrid. I have bound the gridControl to a DataTable. When I delete a row from the DataTable, the XtraGrid shows the change. But when I start dealing with row indexes, I get odd behavior. This is (roughly) the code I use to…
Erik Allen
  • 1,841
  • 2
  • 20
  • 36
2
votes
1 answer

DevExpress: XtraGridView Custom column binding

Lets say that I have the two following classes public class OtherClass { public string OtherName{ get; set; } } public class MyClass { public string TheName { get; set; } public int TheAge { get; set; } } lets say that I bound the…
Rami Alshareef
  • 7,015
  • 12
  • 47
  • 75
2
votes
2 answers

about repositoryItemCheckEdit

I've added repositoryItemCheckEdit in a xtragrid control's column. And i'm having total 3 columns in my xtragridview. From which two columns will be filled with the help of fields from my table when i'm setting datasource property of gridcontrol.…
Priyanka
  • 2,802
  • 14
  • 55
  • 88
2
votes
2 answers

How to change column type of a devExpress xtra Grid Control to CheckBox type column?

In .net grid view Control Column we have a Property called "ColumnType" where we can specify column type which you want Any body please help me how to do this in DevExpress Extra Grid Control Thanks in advance
Renju Vinod
  • 254
  • 1
  • 3
  • 11
2
votes
2 answers

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

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,…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742