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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:11:53+00:00 2026-06-01T23:11:53+00:00

I am trying bind data from database into rich textbox here is my code:

  • 0

I am trying bind data from database into rich textbox here is my code:

        DataTable NameTable = new DataTable("NameTable");
        NameTable.Columns.Add("PropertyNo");
        NameTable.Columns.Add("PropertyName");

        DataSet NameSet = new DataSet();
        NameSet.Tables.Add(NameTable);

        selectQry = new SqlCommand("SELECT PropertyNo, PropertyName FROM Property", conn);
        SqlDataAdapter DataAdpt = new SqlDataAdapter(selectQry);

        DataAdpt.Fill(NameSet, "NameTable");

        Binding NameBinding = new Binding("Text", NameSet, "NameTable.PropertyName");
        NameRtb.DataBindings.Add(NameBinding);

I am getting only last value. Can anyone help me out.
Thanks.

  • 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-01T23:11:55+00:00Added an answer on June 1, 2026 at 11:11 pm

    I dont think this is possible, I personally like to bind Data Tables to DatagridView’s.

    All you need to do is :-

    Use a Binding Source, set its DataSource as the DataTable. You then set the Datasource fro the Datagridview as the Binding Source.

    e.g below :-

    //the DataGridView
    DataGridView dgView = new DataGridView();

    //BindingSource to sync DataTable and DataGridView
    BindingSource bSource = new BindingSource();

    //set the BindingSource DataSource
    bSource.DataSource = dTable;

    //set the DataGridView DataSource
    dgView.DataSource = bSource;

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

Sidebar

Related Questions

I'm trying to insert non-latin data into sqlite database using bind variables using System.Data.SQLite.
I am trying to store data in created SQLite database. Here is the code
I'm trying to get some data from my database, and then pass it into
I want to retrieve data from 2 columns of my database table and bind
Here is my code Dim dt As DataTable = New DataTable(Intervenant) For Each column
I am trying to bind data from SQL to a repeater control. I have
I'm trying to bind to some XML data from my WPF application. I've set
I'm trying to bind data from my SQLiteDatabase to a ListView . I'm currently
i'm trying to insert some data on a database using this code: -(void)insertLocationOnDatabase:(LocationType *)aLocation
I am trying to bind an ObservableCollection of data from my ViewModel to the

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.