aspx_professional thread: Datagrid - Help Needed.
Hello
I'm building a user by roles grid.
Roles across and users down.
They can add roles and users, therefore there is an unknown number of
columns.
I'm adding columns for: id, name and then the roles like this: (see code)
Dim [UserDB] As New UsersDB()
Dim RolesList As SqlDataReader = [UserDB].GetAllRoles()
Dim UserList As SqlDataReader = [UserDB].GetUsers()
Dim dt As New DataTable()
Dim dr As DataRow
Dim i As Integer
Dim dv As New DataView(dt)
dt.Columns.Add(New DataColumn("ID", GetType(Int32)))
dt.Columns.Add(New DataColumn("Name", GetType(String)))
' adding role columns
While RolesList.Read
dt.Columns.Add(New DataColumn(CStr(RolesList("RoleName")),
GetType(Boolean)))
End While
I need to add edit columns after and I also need the role columns to appear
as check boxes when in edit mode?
I also need the value in the cell to appear as an image rather than
TRUE/FALSE
and I'd like the text in the column header to appear vertically.
Is this all possible seeing that I can't set everything in the ASP.NET
interface layer and I have top set everything dynamically in the code behind
?
Thanks
Robert
To unsubscribe from this group, send an email to:
vb_NET-unsubscribe@e...
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/