Solved

Dataview to Textbox

Posted on 2013-06-07
2
554 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

12 Experts available now in Live!

Get 1:1 Help Now