Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
Textbox in Grid Cell
posted

Hi, i am trying to add a textbox to a grid column that i am creating at runtime, but i am unable to find out how to do it.

I notice when you set a cell to be updatable, it doesnt render a textbox, rather just <nobr> tags. I am not using viewstate, so on a postback, i need to recover any values that have changed in teh grid, from the request and restore first before do the postback code, please help.

Thanks

Rob

Parents
No Data
Reply
  • 12025
    posted

    Hi Rob,

    When you set a column to be editable, the textbox will only appear when you try to edit the cell. You can set edit actions via the "EditModeActions" property group under cell editing.  

    If you want to show the textbox at all times, then you will have to use a templated column and host a textbox inside of it. You can get and set textbox values on the server side by doing find control on the template.

    Hope this helps.

    -Taz.

Children
No Data