devexpress

What is the reason of "An item with the same key has already been added." message in vs?

I am using Devexpress' DevExpress.XtraReports.UI.XtraReport component. And in vs2008 pro sp1, when i try to add a dataset to the report, it waits a while and then says:"Error message: An item with the same key has already been added". What might be the possible reasons with this problem and how to fix this? ...

.NET GUI freezes when big load of data

Hi, I'm a junior developer using .NET framework. I'm dealing with an issue because my GUI freezes when I run my application with big load of data. I have a grid an a sort of output text box to log strings. The grid has a row for every message expected to arrive. Then, the application receives messages and the grid updates a cell in ...

How to get selected row of detail grid in Master-Detail GridView?

Hi, I'm having a problem on getting the selected rows values of a detail grid. I have master-detail grid in a popup control and it works fine. I also enabled the enable selection to have checkboxes but when i try to run GetSelectedFieldValues on ClientSideEvents of a button it always returns "0". What do i do wrong, i couldn't find it? ...

ASPxCombobox, Allow user input and dropdown selection

Hi, I'm using devexpress ASPxComboBox, however I wanted to know how I can allow the user to enter values(in case it is not in the list) or choose from a dropdown list. An example would be great! Thanks, Tim ...

ASPxPivotGrid Sorting

I have 2 fields that can be use in row area. One of them is "ID" and the other one is "Name". When put them in to row area, it is sorted by ID, okey. But when I just putted "Name" field to there it is sorted by value. I'm trying to sort it by ID without displaying but haven't overcome yet. Here the documentation but it is not very cl...

AspxGridView Specified method is not supported. problem

Bellow is my .aspx aspxGridview syntax <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="intProductCode" onrowinserted="ASPxGridView1_RowInserted"> <Columns> <dx:GridViewCommandColumn VisibleIndex="0"> <EditButton Visible="True"> ...

DevExpress XtraGrid problem setting value

I wonder if someone can help. I have a LookupEdit within a Devexpress Xtragrid which is populated from a list of filenames, as well as an empty option, and a "new" option. If the user selects the "new" option, it goes off to an upload form (which is fine), uploads to the new directory and returns to the form. The problem is that I wan...

C# - Entity Framework add new object to ObjectContext

Hi, im working with Entity Framework, SQL and C#. i have a Table called Client and other called clients_phone. I have a form with a Xtragrid and using BindingSource I bind the IQueryable to the grid. myBindingSource = new BindingSource(); myBindingSource.DataSource = clients; //Clients it is the IQueryable<Client> myBindingSource.Dat...

How can I override the DevExpress GridView delete

I've got a table (myTable) that I want to remove rows from but not delete them. I'm expiring them by using an myTable.ActiveFlag. So when I "delete" a row from myTable, I'd like to run UPDATE myTable SET ActiveFlag = 0 WHERE id = @rowId What is the best way to do this using a DevExpress Gridcontrol with GridView? I've currently: Priva...

Masking and Display Formats in ASP.NET

Hi, I'm using an aspxtextbox, binded to a datasource. However it does not show the value in the display format specified. The only time it works is when I type in something and click else where, then it reflects the changes. What is the correct way of doing it, it works fine when inputting. Thanks, Tim ...

Is DevExpress for ASP.NET fast enough

My question is simple and straight forward - Is DevExpress fast enough for real world web application. We're using DevExpress in our company to build a CRM for a client and every page has got lots of controls and its damn slow. On my development server it takes 10sec for a page with around 20 controls to load. Is this good or bad? And ca...

Response Redirect cannot be called in Page callback?

Hi, I am getting the following error when I leave my web inactive for a while "Response.Redirect.cannot be called in a Page callback." I'm storing the user ids in session and during page load I check to see if the user id exists if not then I redirect them to the login page. I am using devexpress controls, How can I get the redirec...

Get RepositoryLookupEdit from GridView

I'd like to iterate through all the rows in a gridview and retrieve data from RepositoryLookupEdit. Basically I'd like to do this, but I don't know how to get the RepositoryLookupEdit: For i as Int32 = 0 to myGridView.RowCount -1 Dim row As DataRowView = CType(myGridView.GetRow(i), DataRowView) //'This next line does not work ...

DevExpress eXpress Persistent Objects (XPO) via WCF

Hello all DevExpress devs! =) I'm trying to tame Express Persistent Objects remotely. Actually, XPO allows two different approaches - accessing the database directly, and through WebService/WCF. For security reasons, we've chosen second option. Now, WCF wraps database access, and clients must authenticate themselves in order to acce...

Show combo on AspxGridview

*i work on northwind database .*In my AspxGridview i want to show comboBox.I fill grid on back end C#.i also want my combo will fill back end. <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="CategoryID" oncelleditorinitialize="ASPxGridView1_CellEditorInitialize">...

My Devexpress Gridview Delete event is firing multiple times

I have a Devexpress Gridview that is linked to a delete, fetch and update stored procedure. The problem I am having is that when I run my program, select a row in the grid and press delete it fires the event multiple times. Specifically it deletes the selected row and then I re-fetch the data so the focus returns to the first row. Which ...

How to disable the users abilities for the Devexpress GridView

I am using the DevExpress.XtraGrid.Views.Grid.GridView within my Visual Studio 2008 application and thought I limited the abilities of the user but I was mistaken. I am programming in VB.NET but I can easily translate from C#. I went into the properties of the gridview and set ShowGroupPanel, AllowAddRows, AddNewColumns, AllowDeleteRows...

Is it possible to let linq to sql auto submit my new records back to database ?

I am using linq to sql , and I return a queryable result from linq to sql : var qry = from p in table select p; Then I use this to bind to a xtragrid: GridControl.DataSource = qry; Then If I edit the records in xtraGrid, I just need to call dataContext.submitChanges() to submit the changes back to database. My question is : Am I ...

Devexpress LookupEdit is not displaying the selected row for the last row.

I am using DevExpress.XtraEditors.LookUpEdit to display the information about the classes available. Currently it has 3 columns. The lookupedit is working perfectly except when I set the editValue to the last row. When the editvalue is set to any row other than the last one it shows the selected row when the lookupedit isn't opened yet w...

JavaScript error in IE6 when opening ASPxGridView edit form

I'm using DevExpress ASPxGridView edit form, using default edit form. However when I open the edit form in IE6 and click "update" to insert the record, it causes a JavaScript error that says "type" is null or not an object". However it works fine in IE7. I am puzzled and unsure of how to resolve this. Code is below. <dx:ASPxGridView ID=...