adding bound columns to gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarbjit sandhu
    New Member
    • May 2007
    • 1

    #1

    adding bound columns to gridview

    Hi every one i am facing a problem regarding the gridview,
    bc.HeaderText = M_colHead;
    bc.DataField = M_colNam;
    GridView1.Colum ns.Add(bc);//error here
    GridView1.DataS ource = ds;
    GridView1.DataB ind();
    here M_colHead and M_colNam are the properties that are passed at the run time . please help me
Working...