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
5
votes
4 answers

C# DevExpress XtraGrid, bind to property of nested class

It's easy to bind an XtraGrid control to a class by setting the FieldName for each column to the name of a property in the underlying class. We have now encountered a situation in which we would like to display data from a class nested in the…
Suresh
  • 53
  • 1
  • 6
5
votes
1 answer

Dynamically adding Devexpress GridControl to C# windows application

I want to add Devexpress GridControl dynamically. At runtime I want to show the Filter Row. Also I want to have a button on the same form that has the dynamically created GridControl. When the button is clicked it should show the Filter Dialog popup…
Anshuman Roy
  • 105
  • 2
  • 3
  • 7
5
votes
3 answers

Can I make row cell value readOnly on XtraGrid just for one row?

How can I make a specific row cell readonly(not editable) on XtraGrid? For example just for row[0] but not all rows.
Omer Firat
  • 76
  • 1
  • 1
  • 6
4
votes
1 answer

List of unique values in a Column in XtraGrid

Is there a way to get the list of unique values in any Column in XtraGrid. When I click on the column title for filtering, it shows the list (see the attached image '}' ). Is there any XtraGrid object or Column object by which I can get this in…
Eternal Noob
  • 2,717
  • 5
  • 27
  • 41
4
votes
5 answers

LookupEdit in XtraGrid cell value goes blank

This is what I have: public class ViewModel { public BindingList Rows { get; set; } public BindingList Selectables { get; set; } } public class Row { public MyElement Selected { get; set; } } public class MyElement { …
Manolo
  • 1,597
  • 4
  • 21
  • 35
4
votes
1 answer

DevExpress XtraGrid custom RowCellStyle eventhandler and column sorting problem

My xtraGrid has a custom style eventlistener: FooGridView.RowCellStyle += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(FooGridView_RowCellStyle); private void FooGridView_RowCellStyle(object sender,…
Tim
  • 8,669
  • 31
  • 105
  • 183
4
votes
6 answers

How to set the default Sort on a DevExpress GridView

On .net WinForm, DevExpress's GridControl/GridView bound on a DataSet, how to specify the default sort order? The one that is used when there is no visible GridColumn with a SortOrder. By default, I have set a sorting on the view on my hidden…
Olivier de Rivoyre
  • 1,579
  • 1
  • 18
  • 24
4
votes
4 answers

Dev Express GridView rows count

In System.Windows.Forms.DataGridView it is DataGridView.Rows.Count. But how can I get Dev Express GridView's rows count?
Vano Maisuradze
  • 5,829
  • 6
  • 45
  • 73
4
votes
1 answer

How include a image in devexpress datagrid

How can set icon in Dev express data grid depending on the value returning from Database
Fasal
  • 179
  • 2
  • 2
  • 12
4
votes
2 answers

Why grid become readonly? How to avoide readonly grid problem?

I have a DevExpress xtraGrid which I want to bind. When I try to bind, the compiler gives an error that the gridView datasource is readonly. I tried the below approach, my code is NorthwindDataContext db = new NorthwindDataContext(); var r = from…
shamim
  • 6,640
  • 20
  • 85
  • 151
4
votes
1 answer

Xtragrid repositorycombobox

My repositorycombobox is showing blank option on default. How do I make the option 1 of the combobox to be the default value. I want to make this repositorycombobox to act like dropdown with no edit function. But if I make it non editable the…
Learner
3
votes
3 answers

How to force grid to propagate value to datasource immediately on change?

I have a DevExpress' XtraGrid which is bound to a collection of objects. I want changes to get into the underlying datasource immediately on change. But the default DevExpress behavior is to put new values into the datasource only when the user has…
Dmitry
  • 1,220
  • 2
  • 11
  • 18
3
votes
1 answer

How to simulate a column header click in devexpress xtraGrid?

Hi I have a devexpress grid on the form. I enable the incremental search on one of the columns. But I find I need to click the column header each time when I perform one search. Is there a way to simulate such header or column click in grid…
spspli
  • 3,128
  • 11
  • 48
  • 75
3
votes
2 answers

DevExpress RepositoryItemLookUpEdit

I am binding the Grid with a business object which contains a field Country (which is another business object containing ID and Name). I want to display the country name set to the "Country" in the business object for each row. However if the user…
Jonny
  • 2,787
  • 10
  • 40
  • 62
3
votes
1 answer

How to remove menu option when right clicking on DevExpress Xtra GridControl Column Header?

Any body please help me how to do remove menu option when right clicking on DevExpress Xtra Grid Control Column header
Renju Vinod
  • 254
  • 1
  • 3
  • 11
1
2
3
26 27