Edit mode in Datagrid

Results 1 to 2 of 2

Thread: Edit mode in Datagrid

  1. #1
    Join Date
    Dec 1969

    Default Edit mode in Datagrid

    Hi, is it possible that I can prevent certain columns with label in my datagrid from changing to textbox when the row has gone into edit mode? What I am doing now is create those columns as templatecolumn, then under both normal and edit mode, I put in labels with different name. It dun seems to be right.<BR>Another problem is that when I click on the update button, is it possible to get the value from the label from the datagrid? I am using "e.Item.FindControl("lblName")", but it doesn&#039;t work. Please help. Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Edit mode in Datagrid

    Give that column a read-only setting, e.g.<BR><BR>&#060;asp:BoundColumn HeaderText="payroll" SortExpression="payroll" ReadOnly="True" DataField="payroll" ItemStyle-Wrap="false"/&#062;

Posting Permissions

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