1
Answer

casting from DataRowView To string

dhilipan nair

dhilipan nair

15y
6.8k
1

hi,
i am working on a project(windows form) using c#,i have used a data source for my combobox by connecting it to a database.
And in my form,when i try to see the item selected from the combo box  thru msgbox,it is displayed as System.DataRowView.
and i tried to cast it thru Convert.ToString(),but not successful.
i even tried by creating object for DataRowView and added the items from combobox to this DataRowView object and thentried to convert into string by Convert.ToString(),but yet unsuccessful.
kindly help me!!!!!!!!!!
Answers (1)
0
joakim wireen

joakim wireen

NA 149 0 15y

is it a web form or windows form? Did you apply the multiline paramenter to the textbox?

In web form click on the textmode property and select multiline. Or in windows form change multiline from false to true.