Hi All,
 
need to convert datatable to pivot table using linq C#
 
 |  Role Name |  Screen Name |  IsGranted |  Role Id | 
|  Admin |  Project |  false |  1 | 
|  Admin |  Master |  true |  1 | 
|  PM |  Master |  true |  2 | 
|  PM |  Project |  false |  2 | 
  
Expected output is
 
 
|  Role Name |  Project |  Master |   | 
|  Admin |  false |  true |   | 
|  PM |  false |  true |   | 
|   |   |   |   | 
 
 
How to achieve the above in linq C#