Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...