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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:51:30+00:00 2026-06-19T01:51:30+00:00

i have a GridView with TextBoxes as templelates. now i’m able to insert into

  • 0

i have a GridView with TextBoxes as templelates. now i’m able to insert into the Database. I have a Checkbox as a templet in the gridview so when i check the checkbox the values in the respective row will been inserted into the DB,now i want to Display the Database Values in the same GridView for Update purpose. which i’m not able to do so can anyone please help me

this is my C# Code

SqlCommand search2 = new SqlCommand("select * from OtherCostData", con);
SqlDataAdapter da = new SqlDataAdapter(search2);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();

i only get customer name retrieved the rest will be empty

  • 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-19T01:51:31+00:00Added an answer on June 19, 2026 at 1:51 am

    If I understood you, what you need to do to fill your gridview’s textbox is:

    <TemplateField>
      <ItemTemplate>
        <asp:TextBox runat="server" id="txtGrid1" Text='<%#DataBinder.Eval(Container.DataItem, "YourColumnName")%>'/>
      </ItemTemplate>
    </TemplateField>
    

    I didn’t understand if you are able to save your textbox informations on database. If you’re not, please let me know, so I’ll try to help you.

    Best regards.

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

Sidebar

Related Questions

I have Gridview in which two textboxes and one checkbox in one row. and
I have a Gridview, with textboxes in templatefields, where i dynamically add columns to
I have a GridView with textboxes in its cells. I need to call a
I have a GridView in Which I have four TextBoxes in the Template Field.
I have a gridview in which i have two textboxes. The senarios is such
Hey guys I have a gridview and below it 4 textboxes I'm using to
I have a gridview with multiple dropdownlist, textboxes on footer template and I wanted
I have a gridview in an ASP.NET site. There's a TemplateField right now that
I have two textboxes Textbox1 and Textbox2 and 1 gridview i want my site
In a .net aspx-Page, I have a gridview with textboxes for prices. There is

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.