I have Web Form in ASP.NET in which I would like to show a table with all users in my app. There should be user name, user email, last activity date and user roles.
Currently I has this:
<asp:DataGrid id="UserGrid" runat="server"
CellPadding="2" CellSpacing="1"
Gridlines="Both" AutoGenerateColumns="false">
<Columns>
<asp:BoundColumn DataField="UserName" ReadOnly="False" HeaderText="Name" />
<asp:BoundColumn DataField="Email" ReadOnly="True" HeaderText="Email" />
<asp:BoundColumn DataField="LastActivityDate" ReadOnly="True" HeaderText="Last activity"/>
</Columns>
<HeaderStyle BackColor="darkblue" ForeColor="white" />
</asp:DataGrid>
_
UserGrid.DataSource = Membership.GetAllUsers();
UserGrid.DataBind();
I would like to add column roles to this DataGrid. How can I do that?
In the next step I want to add column with buttons to edit users info, manage his roles etc.