Solved

Populating Text Boxes From a select SQL query

Posted on 2012-04-08
2
333 Views
Last Modified: 2012-04-08
I am using SQL server 2008 R2, VS2010 and I have an apllication that I have written where users go in and enter data.  It is a free form, not a gridview or List or any control.  All this data updates just fine.

What I need to do is return the data based off the link ID which I have no problem, but there are about 30 fields on the form.  I want to keep them all on one page.  Gridview or any of the assp.net components will not keep everything on one page.  I actually want the user to view exactly what they posted when they search.  SO if I have 5 text boxes on the first row, 7 check boxes on the the next three rows, that is how I want to display the data, and I have never tried to accomplish this outside a normal datasource and gridview..  The 30 colums go way off the age and that is not how I want it to display.  Almost like filling out an adobe form, i want the data to be retrieved from SQL and displayed in no   more than 4 columns and about 20 thin rows.  What is the best way to approaach this.?
0
Comment
Question by:jaytechnology
2 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37821658
i suggest you use list view and then bind your data to listview, use Bind/Eval in textboxes to bind each textbox to particular data column.
here is a sample:-

http://msdn.microsoft.com/en-us/magazine/cc337898.aspx
http://msdn.microsoft.com/en-us/library/bb398790.aspx
0
 

Author Closing Comment

by:jaytechnology
ID: 37821754
Thank you Ilooked all day.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question