Updating gridControl gridView records from another form after insert or editDevexpress - How do I base a Gridcontrol's data on the sorted/filtered data from another GridControl?GridControl (GridView) returns no rowsis this the way BindingList should work?Auto-Update table cell based on user input in JavascriptMVC Chart Helper C# ASPGridControl delete multiple row and update the record in databaseHow to getting a value from DevExpress GridControl GridviewGridcontrol edit/update mandatory fields different colourC# Apply changes made to copied DataTableUpdating database view using SqlDataAdapter

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Can a Bard use the Spell Glyph option of the Glyph of Warding spell and cast a known spell into the glyph?

My admission is revoked after accepting the admission offer

Negative Resistance

Is there metaphorical meaning of "aus der Haft entlassen"?

Why do distances seem to matter in the Foundation world?

Could moose/elk survive in the Amazon forest?

What to do with someone that cheated their way through university and a PhD program?

A faster way to compute the largest prime factor

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

Older movie/show about humans on derelict alien warship which refuels by passing through a star

Where was the County of Thurn und Taxis located?

What does "function" actually mean in music?

Contradiction proof for inequality of P and NP?

What makes accurate emulation of old systems a difficult task?

How important is it that $TERM is correct?

Does a large simulator bay have standard public address announcements?

Find the identical rows in a matrix

How can I get rid of an unhelpful parallel branch when unpivoting a single row?

Is there really no use for MD5 anymore?

What is the unit of time_lock_delta in LND?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

What is the term for a person whose job is to place products on shelves in stores?

Combinatorics problem, right solution?



Updating gridControl gridView records from another form after insert or edit


Devexpress - How do I base a Gridcontrol's data on the sorted/filtered data from another GridControl?GridControl (GridView) returns no rowsis this the way BindingList should work?Auto-Update table cell based on user input in JavascriptMVC Chart Helper C# ASPGridControl delete multiple row and update the record in databaseHow to getting a value from DevExpress GridControl GridviewGridcontrol edit/update mandatory fields different colourC# Apply changes made to copied DataTableUpdating database view using SqlDataAdapter






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am using this way to update my gridControl Automatic ,



//-----------------------------



 dbSchoolEntities db = new dbSchoolEntities();
BindingSource bs = new BindingSource();


//-----------------------------



 db.tblStudents.Load();
bs.DataSource = db.tblStudents.Local.ToBindingList();


and it works very well.



but this works only if I am using gridControl to show records from one table



I have searched a lot to find a way to bind multiple records from the different table to make them update automatic but I couldn't find anything useful



right now I am using this code to show data from several tables



//-----------------------------



bs.DataSource = (from t1 in db.tblStudents 
join t2 in db.tblStudentGroups on t1.GroupIDs equals t2.StudentGroupID

select new

t1.StudentIDs,
t1.FirstName,
t1.LastName,
t2.StudentGroupName,


).ToList();
gridControl.DataSource = bs;


//-----------------------------



But if I made a change in a student group name (in another form ) and the gridControl's form was open I have to close it and reopen it to be able to see the changes



Is there any way to do an update to gridcontrol immediately after the edit finish in another form and thank you very much.










share|improve this question




























    1















    I am using this way to update my gridControl Automatic ,



    //-----------------------------



     dbSchoolEntities db = new dbSchoolEntities();
    BindingSource bs = new BindingSource();


    //-----------------------------



     db.tblStudents.Load();
    bs.DataSource = db.tblStudents.Local.ToBindingList();


    and it works very well.



    but this works only if I am using gridControl to show records from one table



    I have searched a lot to find a way to bind multiple records from the different table to make them update automatic but I couldn't find anything useful



    right now I am using this code to show data from several tables



    //-----------------------------



    bs.DataSource = (from t1 in db.tblStudents 
    join t2 in db.tblStudentGroups on t1.GroupIDs equals t2.StudentGroupID

    select new

    t1.StudentIDs,
    t1.FirstName,
    t1.LastName,
    t2.StudentGroupName,


    ).ToList();
    gridControl.DataSource = bs;


    //-----------------------------



    But if I made a change in a student group name (in another form ) and the gridControl's form was open I have to close it and reopen it to be able to see the changes



    Is there any way to do an update to gridcontrol immediately after the edit finish in another form and thank you very much.










    share|improve this question
























      1












      1








      1








      I am using this way to update my gridControl Automatic ,



      //-----------------------------



       dbSchoolEntities db = new dbSchoolEntities();
      BindingSource bs = new BindingSource();


      //-----------------------------



       db.tblStudents.Load();
      bs.DataSource = db.tblStudents.Local.ToBindingList();


      and it works very well.



      but this works only if I am using gridControl to show records from one table



      I have searched a lot to find a way to bind multiple records from the different table to make them update automatic but I couldn't find anything useful



      right now I am using this code to show data from several tables



      //-----------------------------



      bs.DataSource = (from t1 in db.tblStudents 
      join t2 in db.tblStudentGroups on t1.GroupIDs equals t2.StudentGroupID

      select new

      t1.StudentIDs,
      t1.FirstName,
      t1.LastName,
      t2.StudentGroupName,


      ).ToList();
      gridControl.DataSource = bs;


      //-----------------------------



      But if I made a change in a student group name (in another form ) and the gridControl's form was open I have to close it and reopen it to be able to see the changes



      Is there any way to do an update to gridcontrol immediately after the edit finish in another form and thank you very much.










      share|improve this question














      I am using this way to update my gridControl Automatic ,



      //-----------------------------



       dbSchoolEntities db = new dbSchoolEntities();
      BindingSource bs = new BindingSource();


      //-----------------------------



       db.tblStudents.Load();
      bs.DataSource = db.tblStudents.Local.ToBindingList();


      and it works very well.



      but this works only if I am using gridControl to show records from one table



      I have searched a lot to find a way to bind multiple records from the different table to make them update automatic but I couldn't find anything useful



      right now I am using this code to show data from several tables



      //-----------------------------



      bs.DataSource = (from t1 in db.tblStudents 
      join t2 in db.tblStudentGroups on t1.GroupIDs equals t2.StudentGroupID

      select new

      t1.StudentIDs,
      t1.FirstName,
      t1.LastName,
      t2.StudentGroupName,


      ).ToList();
      gridControl.DataSource = bs;


      //-----------------------------



      But if I made a change in a student group name (in another form ) and the gridControl's form was open I have to close it and reopen it to be able to see the changes



      Is there any way to do an update to gridcontrol immediately after the edit finish in another form and thank you very much.







      auto-update gridcontrol






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 9 at 7:50









      barek alnoorbarek alnoor

      61




      61






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075180%2fupdating-gridcontrol-gridview-records-from-another-form-after-insert-or-edit%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075180%2fupdating-gridcontrol-gridview-records-from-another-form-after-insert-or-edit%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко