Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7428807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:52:00+00:00 2026-05-29T08:52:00+00:00

I have a variable defined as follows: Dim iRows As List(Of String()) I’ve also

  • 0

I have a variable defined as follows:

Dim iRows As List(Of String())

I’ve also been converting that to a list of lists just to make it easier to work with.

Dim iRows As List(Of IList(Of String))

I would like to bind that list to a GridView using the contents of the nested array/list to dynamically define the columns. I don’t know ahead of time how many columns there will be, but I do know that they are all the same throughout the list.

I’m just not real sure how to go about it. Thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T08:52:01+00:00Added an answer on May 29, 2026 at 8:52 am

    Seems to me, that without knowing how your datasource looks like / how many columns there will be, there is no way to put each column into a different gridview column.

    That means, fixed markup is not possible => You need to set the AutoGenerateColumns property to true.

    You can set the HeaderText of each column by accessing the HeaderCollecion of the GridView, if you want to use a different

    Another solution you might be interested in, would be not to use the GridView at all, if you are only interested in displaying data (meaning no edit or delete buttons) You could render your data into a html table with columns and rows, by using Reflection, like aleafonso suggested.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say that I have a global variable defined in App.xaml.cs as follows: public
If I have variable of type IEnumerable<List<string>> is there a LINQ statement or lambda
I have defined a boolean Jess function that accepts a lambda, as follows: (deffunction
If I have a variable defined in jquery as follows: var insertString = <div
Suppose I have any variable, which is defined as follows: var a = function()
I need to mock a GrailsControllerClass interface. Instance should have a static variable defined.
I have to extract defined variable and function names from a js code passed
I have a function, where if a variable is not defined, exit; is called,
I would like to have a variable (or #define ) in C++ source that
I have a variable that im define with another variable and some text. $title

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.