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

How to do data binding for particular columns in Dev Express XtraGridControl?

In .net grid view Control we have a Property called "DataPropertyName" where we can specify column name which you want to bind example Code: dataGridView1.Columns[index].DataPropertyName= myDataSource.Tables[index].Columns[index].ColumnName); Any…
Renju Vinod
  • 254
  • 1
  • 3
  • 11
3
votes
4 answers

DevExpress XtraGrid FocusedRowChanged event problem when changing datasource

This problem has bugged me for several years and maybe someone here knows a simple solution, since I just ran into it again. QUESTION: Is there any way to get the XtraGrid to "forget" the current focused row index before a new (different) datasource…
Tim
  • 8,669
  • 31
  • 105
  • 183
3
votes
1 answer

Change DataSource in XtraGrid

i have two different Lists. List list1 = new List(); List list2 = new List(); I bind one of them to a xtragrid form devexpress: gridControl.DataSource = list1; That works. Now i want to change the list but…
tinu
  • 558
  • 5
  • 18
3
votes
1 answer

custom summerType in xtraGrid gridControl

How can add a custom summerType in xtraGrid gridControl? I would like to add a SummerItem to a column in my xtraGrid gridControl named total percent whitch will calculate the percentage of the two other columns. In total I have 3 columns 1.…
A. Zalonis
  • 1,599
  • 6
  • 26
  • 41
3
votes
1 answer

how to set focus row on XtraGridControl Devexpress?

I have a list items to show on XtraGridControl. I want first item of the grid controll, which is always chosen when I sort by any column. I tried to find and use FocusedRowHandle property, but there is not. What properties I can use to focus the…
NoName
  • 877
  • 12
  • 28
3
votes
1 answer

DevExpress GridControl BestFit | AutoSizeMode?

I have 4 Dev Express Grid Columns (Two are not visible) I'am trying to make the visible Columns like : this.DataGridView1.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; I tried the following : …
user3451838
  • 31
  • 1
  • 3
3
votes
2 answers

Retain the value entered in the cell of DevExpress Xtragrid

I am using DevExpress Xtragrid control in my C#.net windows application. I enter some value into the first cell of the grid and if i go to second cell , the value entered in the first cell disappears. How to retain the value entered in the cell ?
Nagendra Baliga
  • 345
  • 1
  • 5
  • 15
3
votes
1 answer

system.convert to custom object

we have a custom datatype object "Money" which is used to represent money values in our application. at the moment we are trying to implement some custom formatting within a grid component however the exception "InvalidCastException" is raised from…
Roboudy
  • 31
  • 3
3
votes
3 answers

Xtragrid one column editable other aren't

Hi I have DevExpress xtragrid control. How can I set just for one column editable = true (column is empty)
user2901896
  • 31
  • 1
  • 2
  • 4
3
votes
1 answer

DevExpress - xtragrid column running totals

I am using DevExpress xtragrid that is bound to a data source... all is fine there. I am adding 1 unbound column (balance) that will hold the result of a calculation. The 'balance' column MUST recalculate when the debit and / or credit column…
3
votes
1 answer

Create BandedGridView for DevExpress XtraGrid

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…
surfmuggle
  • 5,527
  • 7
  • 48
  • 77
3
votes
1 answer

How to enable editing for new inserted row in a GridView while gridview is allowedit = false?

I have a GridView control of xtraGrid suite in a form. When I open the form for first time it is AllowEdit = false. I want that when I press on add new row link(built in by control) to make editable this only new inserted row. I read that I should…
Alexa Adrian
  • 1,778
  • 2
  • 23
  • 38
3
votes
4 answers

Show message in empty cells in GridView

I'm importing GridView from excel I need to show a message near every empty cell to give the user information about what it should be writing.. void simpleButton1_Click(object sender, System.EventArgs e) { string[] msg = new string[60]; …
Nejthe
  • 580
  • 5
  • 10
  • 21
3
votes
1 answer

How can i get xtragrid row index via repository button in gridcell?

I have buttons in xtragrid cell . i want to get row index when i clicked to repository button item. How can i get cell info or index.. I wanna show cell info at anotherp page which respository button clicked in row cell.. Can you help me ? Thanks…
user825875
  • 53
  • 2
  • 6
3
votes
3 answers

How to display a RepositoryItemHyperLinkEdit control inside a DevExpress GridControl

I have a DevExpress GridControl in my current WinForms application. I need to display a hyperlink control (RepositoryItemHyperLinkEdit) in a column. I have added the RepositoryItemHyperLinkEdit via designer, but when I am running the application,…
Ranjan Panigrahi
  • 227
  • 2
  • 6
  • 10
1 2
3
26 27