Solved

Dataview to Textbox

Posted on 2013-06-07
2
559 Views
Last Modified: 2013-06-07
Hi,

I have a dataview with one row in it. I need to populate the textbox with column in data view named "Description" How do I do it ? I dont want to convert to datatable
0
Comment
Question by:GRChandrashekar
2 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 500 total points
ID: 39229247
To access a specific column in a specific row, use:

VB.Net
<dataview object>(<index>)("<name of columne>")

C#
<dataview object>[<index>]["<name of column>"]
0
 

Author Comment

by:GRChandrashekar
ID: 39229300
tbxdescription.Text = Convert.ToString(dataview[0]["Description"])

Unexpected token
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now