• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

Dataview to Textbox

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
GRChandrashekar
Asked:
GRChandrashekar
1 Solution
 
Shaun KlineLead Software EngineerCommented:
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
 
GRChandrashekarAuthor Commented:
tbxdescription.Text = Convert.ToString(dataview[0]["Description"])

Unexpected token
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now