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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:04:51+00:00 2026-05-26T00:04:51+00:00

How do I add row data directly to a DataGrid Class? I am using

  • 0

How do I add row data directly to a DataGrid Class?

I am using a free opensource class from a company that I will not name (even if it is RadiantQ) that I like a lot. It has this cool MuLtiColumnTreeList control that is a combination of a tree control and a datagrid. It comes with an example code that you can look at and everything. It is pretty cool. It is inherited from the DataGrid class.

The problem is that I am kind of new to databinding on this level and so I would like to just go ahead and write some code that forces the data that I have gathered from another class into the control.

So I looked online for how to do that for a DataGrid class and the information is not easily available. Can anyone help?

It seems that once the databinding is done, and if you change the data you have to rebind to the control. This is what was giving me difficulty before. So what I have to do is run some command like this:

this.mutlicoolgridview.ItemsSource = null;
this.mutlicoolgridview.ItemsSource = SampleData.GetSampleDataNew();

The problem I am having now is this. After running his command about one thousand times, I actually run out of memory. I think that doing this:

this.mutlicoolgridview.ItemsSource = null;

is not such a good idea. Is there a better command to do to free up the memory?

This is a similar looking crash:
[IMG]http://i67.photobucket.com/albums/h292/Athono/unusual.png[/IMG]

  • 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-26T00:04:51+00:00Added an answer on May 26, 2026 at 12:04 am

    If you have a List of objects, you can copy them to a BindingList. Then you can use

    dataGrid.ItemsSource = myBindingList;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Goal: Having two buttons that should be enable to add or delete data from
I am using datagrid view. Data gets added in the table and from the
I want add every row data from csv into Dictionary in c# csv is
I have an object that reads data from an Excel file using, which takes
I'm trying to add a Row to my data.frame to spit out the average
I'm using jQuery to add an additional row to a table as the last
I'm using a MySQL 5.0 server. My requirement is to add one special row
I'm trying to add a row to a table and have that row slide
to add some row data into a table, affter submmiting the button i have
Hi I am using a table manipulation (sorting) script taken directly from Learning jQuery

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.