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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:06:50+00:00 2026-05-26T15:06:50+00:00

I am making Winforms application. I have put gridview in usercontrol. Which is another

  • 0

I am making Winforms application. I have put gridview in usercontrol. Which is another control.

public long FileID
    {
        get { return _FileID; }
        set 
        {
            _FileID =value;
            BindGridView();
        }
    }

Here I am setting property values and binding gridview , I am getting records in Messagebox too, but I cant find Gridview. Help me. Thanks.

private void BindGridView()
         {
             if (_FileID!= 0)
             {
                 srHstyFiles = new dms_client.History_Files.History_FilesSoapClient();
                 DataTable dt;
                 dt = srHstyFiles.GetHistoryRevisionfile(_FileID);
                 gvHstoryRev.DataSource = dt;
                 gvHstoryRev.Refresh();
                 gvHstoryRev.Parent.Refresh();
                 MessageBox.Show(gvHstoryRev[1,2].values.tostring());
             }
         } 
  • 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-26T15:06:51+00:00Added an answer on May 26, 2026 at 3:06 pm

    If you have drag and drop user control and you are making new object and try to set property then your grid view wouldn’t bind any way.

    When ever user control dropped c# generate automatic instance of user control of its name.

    Example
    ParentControl.ChildControl.FileID = id;

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

Sidebar

Related Questions

I am making an application in C# which uses a winform as the GUI
I have two ListBox in my winforms application, I assigne a datasource for both
I have a .NET application that was written in C# and VB.NET using WinForms.
I am making a multi-lingual (computer languages) notepad in WinForms. I have a menu
I have a Winforms app which is being deployed to the employees as a
I have a winforms project that I want to develop a custom control for.
I am making a Win Forms application to learn more since I don't have
i am making a simple c#.net winform application with a form1, which will connect
I'm making my own commentbox control that inherits from a winforms textbox. One of
I'm making a calendar From in C# using WinForms. I've put it together using

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.