Hi all
in my requirement in need to show
the list of users and need to place a combo box for every user , so that
i can assign a role to that perticular user as Team lead,Project Manager,User like that
How can i do this
Regards
TIS
Printable View
Hi all
in my requirement in need to show
the list of users and need to place a combo box for every user , so that
i can assign a role to that perticular user as Team lead,Project Manager,User like that
How can i do this
Regards
TIS
Thank for your reply
The suggested thing is working in windows bassed application
i am working on web based one
in web based we dont have datagridcomboboxcolumn
is there any other solution
Add templateField to gridview and set its datasource to roles list.
Code:<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataSourceID="Company" Width="400px">
<Columns>
..
..
<asp:TemplateField HeaderText="Roles">
<ItemTemplate>
<asp:DropDownList ID="DropDownList1" DataSource='<%# GetRolesList() %>' runat="server">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Code:protected List<string > ddlItems()
{
List<string > lstRoles=new List<string>() ;
lstRoles.Add("Role1");
lstRoles.Add("Role2");
lstRoles.Add("Role3");
return lstRoles;
}
Thanks a lot