How to retrieve one column from data table?

excel
uiautomation
activities

#1

Hi,

any samples?

thank you.


#2

Hi @Venkatesh_Chowdary,

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

to get column name

"dataTable.Columns(0).ColumnName"

Regards
Balamurugan


#3

hi @balupad14

you have any sample?

i wanted to get entire column.

thank you.


#4

Hi @Venkatesh_Chowdary,
Check the sample :

Note : I changed again pls check it.

ColumnName.zip (2.1 KB)

Regards
Balamurugan


#5

hi @balupad14

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

thank you.


#6

Hi

Download the sample again.  I have changed it.

Regards
Balamurugan


#7

Hi @balupad14

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

thank you.


#8

Yes possible.

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

Regards
Balamurugan


#9

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

Regards
Balamurugan


#10

thank you @balupad14