For each colmn

hi all,

i have datatable contain one row
in first type into i want to type colmn name and its work.
in seccond typ into i want to type the data, how can i do that.

thanks all


Try like this

1.item.columnName.ToString will give you the column name

2.If you need item in the column item(0).ToString will give you the data


its not work


if it is a drop down you can use select item to get the data…

could you please explain your query a bit more…

Do you need to write the data or need to select the data from drop down?


1 Like

i have to type into tow fields,

the first is for colmn name
the other is for data in that colmn

thanks for reply

To get the data from the first row:


1 Like

thanks it work

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.