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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:44:59+00:00 2026-06-05T10:44:59+00:00

How do I go about getting just one specific column from a dataset? I

  • 0

How do I go about getting just one specific column from a dataset?

I want to get the column where the user name equals the current logged in user, which I know how to do and is sort of working.

Here is the code I am using to bind the dataset to the gridview

dsUser myDataSet3 = new dsUser();

myDataSet3 = Users.GetNote(Server.MapPath("wsc_database.accdb"), UserID);

grdNote.DataSource = myDataSet3.Tables["User"].Rows[0]["usr_note"];

grdNote.DataBind();

Which sort of gives me the right result, however, the formatting is ridiculous (evidently can’t post the picture)

but it gives me the column I want but formats badly like so.

[t]
[h]
[i]
[s]

Each letter is separated in it’s own row and column.

How can I get the same column result but not split up like this?

I am new at this and hope that I am being clear, been struggling with this all day. A thanks in advance to anyone who can help!

  • 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-05T10:45:01+00:00Added an answer on June 5, 2026 at 10:45 am
    grdNote.DataSource = myDataSet3.Tables["User"].DefaultView;
    grdNote.DataBind(); 
    

    Then in html bind your column to “usr_note” column

    <asp:GridView ID="grdNote" runat="server" AutoGenerateColumns="false">
        <Columns>
            <asp:BoundField DataField="usr_note" HeaderText="Note" />
        </Columns>
    </asp:GridView>
    

    My question is why are you trying to diplay 1 record in grid view, what is the point of using gridview if it is only one record?

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

Sidebar

Related Questions

I'm just about getting into WCF ; but from what I've read so far,
I just need to know how to go about getting a postcode from the
Just getting started with db2. Quick question about giving it SQL commands from a
I was wondering how one would go about getting an object from a remote
I'm just trying to figure some things out in my head about getting information
I am just getting into Sharepoint, and I have a question about having a
I'm strugging with getting an iPhone application which requires just about every push or
Is there any built-in functionality in vba to get unique values from a one-dimensional
Ok so I 'm just getting into nhibernate (using fluent). One thing that I
I just learned about aliases in bash. I created one like so: alias=cd $directory

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.