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 9008077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:51:29+00:00 2026-06-16T01:51:29+00:00

I have an application written in VB.NET that generates an Infragistics UltraGrid containing information

  • 0

I have an application written in VB.NET that generates an Infragistics UltraGrid containing information about companies that I get from a SQL database. When a user clicks on a row, the AfterRowActivate event is fired and more information appears for the user in the bottom half of the screen. It’s done and working nicely. This is the method that is called:

Private Sub grdCompany_AfterRowActivate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles grdCompany.AfterRowActivate

    If (Not grdCompany.ActiveRow.IsGroupByRow) Then
        If (grdCompany.ActiveRow.Cells("Company_id").Text <> "") Then

            FillCompanyAddressGrid()
            FillCompanyDetail()
            FillChildCompanyGrid()
            FillPropertiesGrid()

        End If
    End If
End Sub

Users tend to scroll through the grid with the arrow keys quickly. So the AfterRowActivate event is getting fired off every time and it’s making unnecessary queries to the database. I want to implement a delay so that the the row has to be highlighted for about a half-second before the program starts looking in the database for more information. But I’m having trouble accomplishing this. What would be the best way to go about doing this?

  • 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-16T01:51:30+00:00Added an answer on June 16, 2026 at 1:51 am

    Create a timer on your form
    In the grid AfterRowActive function, reset the timer:

    Private Sub grdCompany_AfterRowActivate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles grdCompany.AfterRowActivate
    
        If (Not grdCompany.ActiveRow.IsGroupByRow) Then
            If (grdCompany.ActiveRow.Cells("Company_id").Text <> "") Then
                Timer1.Enabled = False
                Timer1.Enabled = True
            End If
        End If
    End Sub
    

    In your Timer event run the code:

    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick  
        FillCompanyAddressGrid()  
        FillCompanyDetail()  
        FillChildCompanyGrid()  
        FillPropertiesGrid()  
        Timer1.Enabled = False  
    End Sub  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET application written in C# that saves information in XML format.
We have an application written in both C++ and .NET that installs for all
I have an application that was written in vanilla ASP.NET that I would like
I have a WinForms application written in C# for .NET 3.5 that needs to
I have a simple application written in C# and .Net 2.0 that displays several
I have this code in my ASP.NET application written in C# that is trying
I have to support an application that was written in .NET 1.1 many years
Greetings, We have an application written in .net 3.5 that uses wcf and also
We have an application written in C# .NET that is currently used in production
I currently have a TCP server application written in .Net that receives and submits

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.