J
John A Grandy
I'm not using SqlDataSource or ObjectDataSource. I'm handling events ,
similar to approach commonly used in 1.1. DataGrid.
My question is : How do I configure a GridView's edit mode row format ?
Here is my aspx :
<asp:GridView ID="gvTasks" runat="server" AllowSorting="true"
BackColor="Aqua"
Caption="Tasks" DataKeyNames="TaskID" EnableViewState="true"
ForeColor="Black"
EnableSortingAndPagingCallbacks="false"
AutoGenerateDeleteButton="true" AutoGenerateEditButton="true"
OnRowEditing="gvTasks_RowEditing"
OnRowCancelingEdit="gvTasks_RowCancelingEdit"
OnRowUpdating="gvTasks_RowUpdating" OnRowUpdated="gvTasks_RowUpdated"
OnRowDeleting="gvTasks_RowDeleting" OnRowDeleted="gvTasks_RowDeleted"
OnRowCreated="gvTasks_RowCreated"
<Columns>
<asp:BoundField DataField="TaskID" Visible="false" />
<asp:BoundField DataField="TaskDate" ShowHeader="true" HeaderText="Date" />
<asp:BoundField DataField="TaskDescription" ShowHeader="true"
HeaderText="Description" />
<asp:BoundField DataField="TaskTimeInHours" DataFormatString="0.0"
ShowHeader="true" HeaderText="Hours" />
</Columns>
</asp:GridView>
similar to approach commonly used in 1.1. DataGrid.
My question is : How do I configure a GridView's edit mode row format ?
Here is my aspx :
<asp:GridView ID="gvTasks" runat="server" AllowSorting="true"
BackColor="Aqua"
Caption="Tasks" DataKeyNames="TaskID" EnableViewState="true"
ForeColor="Black"
EnableSortingAndPagingCallbacks="false"
AutoGenerateDeleteButton="true" AutoGenerateEditButton="true"
OnRowEditing="gvTasks_RowEditing"
OnRowCancelingEdit="gvTasks_RowCancelingEdit"
OnRowUpdating="gvTasks_RowUpdating" OnRowUpdated="gvTasks_RowUpdated"
OnRowDeleting="gvTasks_RowDeleting" OnRowDeleted="gvTasks_RowDeleted"
OnRowCreated="gvTasks_RowCreated"
<Columns>
<asp:BoundField DataField="TaskID" Visible="false" />
<asp:BoundField DataField="TaskDate" ShowHeader="true" HeaderText="Date" />
<asp:BoundField DataField="TaskDescription" ShowHeader="true"
HeaderText="Description" />
<asp:BoundField DataField="TaskTimeInHours" DataFormatString="0.0"
ShowHeader="true" HeaderText="Hours" />
</Columns>
</asp:GridView>