How to populate a textbox in vb.net -


i have gridview contais textbox in row 0.

i able read textbox 2 instructions:

dim control control = gridview.rows(0).findcontrol("textbox") dim valueintextbox textbox = ctype(cntrol, textbox) 

my question is, how can send data textbox, example sent letter "a" textbox?. suggestion?

i using line try populate textbox textbox disappear:

gridview.rows(0).cells(0).text = "a" 

thanks.

you can set text using following lines:

dim control control = gridview.rows(0).findcontrol("textbox") if control isnot nothing     dim valueintextbox textbox = ctype(cntrol, textbox)     valueintextbox.text = "some text" end if 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -