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

  • Home
  • SEARCH
  • 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 7923467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:20:12+00:00 2026-06-03T17:20:12+00:00

I am using the Janus GridEX in a solution. I have a refresh button

  • 0

I am using the Janus GridEX in a solution. I have a refresh button on the screen. The idea of this refresh button is obviously to get new data from the datastore. When the user clicks this button once it does not refresh the grid, but when you click the button a second time then the grid refreshes. Here is how I populate the grid on this button click

    public void PopulateDashboard()
    {
        List<DashboardReminder> reminders = DashboardReminder.GetReminders(1, true);
        grdDashboard.SetDataBinding(reminders, "RootTable");

    }

I have tried all combinations of refresh, tried with a binding source, but can not get this button to work the first time the user clicks on it, no matter how i bind this gridview to my list of objects.

Please any ideas are welcome.

regards

  • 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-06-03T17:20:13+00:00Added an answer on June 3, 2026 at 5:20 pm

    There’s a couple of different things you could try

    1)

     public void PopulateDashboard()
     {
         grdDashboard.SetDataBinding(Nothing, Nothing)
         List<DashboardReminder> reminders = DashboardReminder.GetReminders(1, true);
         grdDashboard.SetDataBinding(reminders, "RootTable");
     }
    

    2)

     BindingList<DashboardReminder> reminders;
     public void Setup()
     {
         grdDashboard.SetDataBinding(reminders, "RootTable");
     }
     public void FetchReminders()
     {
         BindingList<DashboardReminder> reminders2 = DashboardReminder.GetReminders(1, true);
         //add your own code to import contents of reminders2 into reminders
     }
    

    The Janus grid will automatically notice the ListChanged events fired from the reminders BindingList and correctly update the display.

    If you go with the BindingList option, you get all the list changed events for free and you don’t have to worry about calling Grid.Refetch or re-binding just to update the display. You should only need to call Grid.SetDataBinding(a,b) once, after that just manipulate the underlying list.

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

Sidebar

Related Questions

using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
I am using the Janus GridEx (Windows Forms) and would like to export the
I use vim. Specifically I am using Janus . I have expandtab set. However,
Using Core Data, I have a fetch request to fetch the minimum of a
I just made the switch to vim from emacs, using MacVim with Janus. In
I recently switched over to using Janus from a custom set of vim plugins
using file_get_contents , I open an Internet URL and get the contents of this
I'm relatively new to Vim and have been using it without issues so far.
I'm new to VIM and using the Janus plugin collection on MacVim. For whatever
I have a string array like this: string[] names = new string[] { john,

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.