Results 1 to 2 of 2

Thread: enabling gridview column at runtime

  1. #1
    ollydsouza is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.0
    Join Date
    Mar 2012
    Posts
    6
    Reputation
    0

    enabling gridview column at runtime

    Hi,

    I have a gridview with one of the columns disabled at design time and based on a specific role of the user I need to enable it in run time.

    so:

    If user_role = isfromthisgroup then
    gridview.col(4).enable
    end if

    How can this be achieved? Any help is appreciated. Thanks.

  2. #2
    Lotok is offline VB.NET Forum Genius
    .NET Framework
    .NET 4.0
    Join Date
    Jan 2012
    Location
    Scotland
    Posts
    193
    Reputation
    22
    Pretty much what you said, but stick it in the page load event.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking