Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 726451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:27:13+00:00 2026-05-14T06:27:13+00:00

I have a grid (DevExpress XtraGrid, if that matters) which is bound to a

  • 0

I have a grid (DevExpress XtraGrid, if that matters) which is bound to a LINQ to SQL Entity property.

gridItems.DataSource = purchaseOrder.PendingItemsGrouped;

Well, the grid is being displayed properly,and I can see the purchase items that are pending.
The problem arises when purchaseOrder.PendingItemsGrouped gets changed … once that happens, the grid does not reflect the changes.

The exact procedure is as following:
The user selects a row from the grid, inserts a serial number on a specific textbox, and then hits enter effectively receiving this item from the purchase order, and inserting it into stock.

inventoryWorker.AddItemToStock( userSelectedItem, serialNumber );

The item gets properly inserted to the inventory, but the grid still shows the item as if it is still awaiting it to be received.

How do I solve this problem?
Do I really need to re-bind the grid so the changes can be reflected?

I even tried instead of:

gridItems.DataSource = ...;

This:

gridItems.DataBindings.Add( new Binding( "DataSource", purchase, "PendingItemsGrouped" ) );

But couldn’t solve the problem.
Thank you very much for your time,

Isaac.

OBS:
Re-Binding the Grid works, but my question is … is that even the proper way of doing things? I feel like I’m miles off the right track.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:27:13+00:00Added an answer on May 14, 2026 at 6:27 am

    Calling databind is actually the right approach when you think about how databinding in webforms works. In all examples when databinding to objects, calls to databind happen whenever the collection is modified.

    The reason it feels wrong is because its a lot cleaner to use a DataSourceControl, such as a LinqDataSourceControl or ObjectDataSourceControl, where all that stuff is handled for you.

    Two things that might help you along this path is when using a LinqDataSourceControl, you might need to override the various -ing methods (Selecting, Inserting, Deleting) etc, in order to add additional filtering and logic.

    The other thing that springs to mind is http://multitierlinqtosql.codeplex.com/. Especially the section on Custom ObjectDataSource.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DevExpress MVC grid that uses the following .BindToLINQ: .BindToLINQ(typeof(MyContext), Results, ((s,
VB .NET 4 WinForms application. I have a (DevExpress) grid bound to an IEnumerable(Of
I am required to use the DevExpress ASPxGridView. I have a datasource Object which
I have a DevExpress grid that needs to be refreshed every time the value
The DevExpress Grid (XtraGrid) allows grids and their groups to have summary calculations. The
I have a DevExpress xtraGrid which I want to bind. When I try to
Background We have a problem that sometimes the grid in Devexpress raise exception Raised
I have a devexpress Grid with GridView and there is the possibility to add
i have a DevExpress Grid and want to set up an edit Mask on
I have grid with some textboxes and an image which goes out of grid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.