How to retrieve one column from data table?

Hi,

any samples?

thank you.

1 Like

Hi @Venkatesh_Chowdary,

 "dataTable.Rows(1)(0).ToString()"

to get column name

"dataTable.Columns(0).ColumnName"

Regards
Balamurugan

2 Likes

hi @balupad14

you have any sample?

i wanted to get entire column.

thank you.

Hi @Venkatesh_Chowdary,
Check the sample :

Note : I changed again pls check it.

ColumnName.zip (2.1 KB)

Regards
Balamurugan

hi @balupad14

it is printing one value. need to print entire column.how to do that?

thank you.

Hi

Download the sample again.  I have changed it.

Regards
Balamurugan

1 Like

Hi @balupad14

it is writing all column names. i need only one entire column data along with column name.
is it possible?

thank you.

1 Like

Yes possible.

  1. Do a for loop row
  2. Inside it can get like this " Item(0).tostring ".

Regards
Balamurugan

1 Like

Hi @Venkatesh_Chowdary,
Here is the sample : OneColumn.zip (2.0 KB)

Regards
Balamurugan

4 Likes

thank you @balupad14

1 Like