Results 1 to 2 of 2

Thread: Any advice on dynamic Gridviews?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Any advice on dynamic Gridviews?

    For the first time I am creating a Gridview dynamically. I have to do this because I don't know how many columns are required - the Gridview shows users in a group as columns - and each group has a different number of users on it.

    So far it seems to be a nightmare. Because everything is created at runtime on postback everthing is lost and it's virtually start again time. I've had to sent the ViewState on the GridView to false otherwise, every postback, it adds the columns again.

    Any tips or pointers on this sort of thing? Seems to be a dozen ways of doing everything and they all have their ups and downs.

    Thanks for any tips.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Any advice on dynamic Gridviews?

    Hello,

    I think an example, say a screen shot, of the type of GridView you are trying to achieve would help us point you in the right direction.

    Gary

Posting Permissions

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



Click Here to Expand Forum to Full Width