troubleshooting Question - Load Datagridview Record Processing

Avatar of Jimbo99999
Jimbo99999Flag for United States of America asked on
.NET ProgrammingVisual Basic.NET
6 Comments1 Solution1022 ViewsLast Modified:
Good Day Experts!

Man do I need some direction on this one.  I have a Permissions table in a SQL db that I am querying by User.  In the table, each permission is a record.  So, a User can have several permissions(several records in the table).  

Lets say Bob has 3 permissions attached to his he has 3 records in the table.

Username      First     Last     .....   Permission
   BobS            Bob     Smith              Add
   BobS            Bob     Smith            Update
   BobS            Bob     Smith            Delete

1) Put Username, First, Last in only one line of a DataGridView.
2) Check the corresponding checkbox on the Tab based on each permission( I have
    checkboxes for each possible permission on a panel on the Tab).

 I can get all 3 records to load in the DataGridView so I know I can return the data from

1) How do I loop through the records and get all the permissions to an array so I can
    check the corresponding checkboxes?
2) How do I just load 1 of the records Username, First and Last to the DataGridView?

I appreciate any assistance you all can provide with this task,

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros