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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:58:35+00:00 2026-06-16T07:58:35+00:00

I have a User Information table which contains First name last name … When

  • 0

I have a User Information table which contains

First name 
last name
...

When i am fetching the Data from a source into a dataset. It shows the repeated Value in a grid as:

First Name Last Name .... First Name Last Name....

the code as follows:

Utility class

public DataSet GetMember()
        {

            using (SqlConnection con = new SqlConnection(connectionString))
            {
                using (SqlCommand cnn = new SqlCommand("selectmember", con))
                {
                    cnn.CommandType = CommandType.StoredProcedure;

                    using(DataSet ds=new DataSet())
                    {
                       try
                       {
                        con.Open();
                        cnn.ExecuteNonQuery();
                        SqlDataAdapter da = new SqlDataAdapter(cnn);
                        da.Fill(ds);

                        }

                       catch (Exception e)
                       {
                       }
                       return ds;
                    }
                }
            }
        }

Member.aspx

 public void binddata()
        {
            DataSet ds = new DataSet();
            ds = utility.GetMember();
            GdMember.DataSource = ds;
            GdMember.DataBind();
        }

Am i missing any code or i am doing any error. Thanks for any assistance.

  • 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-16T07:58:36+00:00Added an answer on June 16, 2026 at 7:58 am

    Most probably your grid has explicit column templates but in the same time you forgot to set AutoGenerateColumns to false. Thus, the first set of columns comes from templates and the second one is auto generated by the grid based on the structure of the data set.

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

Sidebar

Related Questions

I have a table (user) that contains user information. I have another table (userview)
Currently we have a table with a bunch of data from a database which
I have a table which contains contact information. This table has 1 column relevant
I have a users table which contains the users information (fname, lname...etc) and a
I have a tbl_user , which contains information about user, and I have a
I have two relational tables: the Profiles table which contains 3 kinds of user
I have a user table from which I want all values, so I have
I have a table which contains Geo-Based information. (latitude and longitude) i would like
This is probably a newbie question. I have a table USER which contains info
I have a table that stores user information. The table has a userid (identity)

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.