Editing in a Data Grid

Results 1 to 2 of 2

Thread: Editing in a Data Grid

  1. #1
    Join Date
    Dec 1969

    Default Editing in a Data Grid

    I've created a fairly straight forward app that displays data in a datagrid, allowing in place editing. One issue I have is that when I click on "edit" the cells in the row are opened as text boxes that are at times much to big. How and where would I specify the size of the column/text box when in edit mode? Note also that I'd probably like to custom size each cell when in edit mode. Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: Editing in a Data Grid

    A couple of ways you could handle this....<BR><BR>First would be to specify your own EditItemTemplate for the column or columns in question. That way, you can place a TextBox control on the page and set the Columns property.<BR><BR>The other way to do it would be to provide an event handler for the OnItemDataBound event. In the event handler, you would get a reference to the specific textbox controls you want to manipulate, then set the Columns property for each of them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts