Updating Dynamic columns in GridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hamidawan
    New Member
    • May 2009
    • 1

    Updating Dynamic columns in GridView

    Hi
    I have a problem with my ASP.Net Gridview Control.
    I have a GridView that has a variable number of columns.
    First two columns are permanent.
    Remaining CheckBox columns that contain TemplateFields are dependant on the number of rows of another datatable.
    I have also managed to show checkboxes in the datagrid on the basis of another data table's rows.
    But problem is this:
    1) When I click the Edit button (programmatical ly added) first time, the checkboxes disappear as well as the gridviews mode is not changed to edit.
    2) When I click second time on the edit button, the mode is changed to EditMode but checkbox columns are still empty.

    Can anyone explain?
    I have also written this.GridVide1. EditIndex=e.New Index; in the RowEditing event of the gridview.
    Pls help me
    Regards and thanx in advance
  • prabirchoudhury
    New Member
    • May 2009
    • 162

    #2
    Updating Dynamic columns in GridView

    should nt have any problem if you use object databinding and enable edit mode....


    read more



    <Links snipped>
    Last edited by Frinavale; May 6 '09, 08:56 PM. Reason: Links removed: advertising personal website that had nothing to do with the question.

    Comment

    Working...