DataGridEdit

shlvy

Regular
Joined
Oct 27, 2003
Messages
68
Hi
I use DataGrid and columns to display details and update them, the problem is that i want that the details will be shown in column, i mean one under one :
UserName--->
Password---->
RetypePassword---->
.....
And can i hide the Id number in the table, i don't need it to be shown.
<columns>

<asp:TemplateColumn HeaderText="ID">
<ItemTemplate>
<asp:Label id="Name" runat="server"
Text='<%# Container.DataItem("UserID") %>' />
</ItemTemplate>
</asp:TemplateColumn>

<asp:BoundColumn HeaderText="UserName" DataField="UserName" />
<asp:BoundColumn HeaderText="Password" DataField="Password" />
<asp:BoundColumn HeaderText="RetypePassword" DataField="RetypePassword" />
<asp:BoundColumn HeaderText="Email" DataField="Email" />
<asp:BoundColumn HeaderText="Comments" DataField="Comments" />

<asp:EditCommandColumn
EditText="Edit"
CancelText="Cancel"
UpdateText="Update"
HeaderText="Edit" />

<asp:ButtonColumn HeaderText="" text="Delete"
CommandName="delete" />
</columns>

Thank's.
 
Back
Top