datagridview

This is a discussion on datagridview within the C# Programming forums, part of the General Programming Boards category; Hi, I have a datagridview that is populated dynamically to a datatable, when the user clicks on a certain area. ...

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    329

    datagridview

    Hi,

    I have a datagridview that is populated dynamically to a datatable, when the user clicks on a certain area.

    When they click on another area, the datagridview needs to display a completely different table.

    The problem is the old table is still in the view and I cannot seem to shift it.

    I have tried setting the controller to null, refreshing it, deleting columns. etc.

    Any help would be gratefully received.

    Thanks.

  2. #2
    Registered User
    Join Date
    Feb 2009
    Posts
    329
    Fixed: I had dataGridView1.AutoGenerateColumns = false;

  3. #3
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    the context of your question if incomplete.
    do you have some example code?
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DataTable binding....
    By stumon in forum C# Programming
    Replies: 2
    Last Post: 12-10-2009, 11:38 AM
  2. DataGridView
    By sgh in forum C# Programming
    Replies: 1
    Last Post: 03-18-2009, 11:40 PM
  3. Newbie - Datagridview
    By spadez in forum C# Programming
    Replies: 1
    Last Post: 03-15-2009, 02:01 PM
  4. DataGridView Cant Get It To Display Text When I Tell It!
    By karimallen in forum C# Programming
    Replies: 1
    Last Post: 11-22-2007, 10:16 AM
  5. Replies: 0
    Last Post: 02-21-2006, 11:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21