Textbox control cursor focused in the middle instead at the beginning


New member
Oct 20, 2015
Programming Experience
I have a textbox inside gridview under edit temple with data bind. Somehow, textbox messages start from the middle row instead from the beginning. Like I have couple rows empty and then my message. Do you have any suggestions to resolve this? Thanks for your help.
You can set TextMode for textbox to Multiline, this will align the text inside textbox to top.

For other type of styling you should think CSS, and what elements are actually rendered, look at the page source in browser during debugging. For example Gridviews produce Html Table elements with TR rows and TD cells, and Asp.net Textbox produce a Html Input (text) element, while Asp.net Textbox with Textmode=Multiline produces a Html Textarea element. So basically you are looking as CSS solutions for either a 'input text' or textarea inside a TD.
Top Bottom