Skip to content

Dynamically gridview

murali athmuri

Asked Jan 7, 2013, 12:37 AM EST2 answers
Share
LinkedInX
Sir,


I have an one text box in that text box i am enterning integer  value on the basis of interger gridview columns are created. My problem is in that columns i want to create dynamical dropdown with data..

Please help me

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    U can change the type of column to DataGridViewComboBoxColumn and give it values as you want
    0
  • 0
    Dear,


    on rowdatabount-

    goto columns and create- dropdownlist li=new dropdownlist();

    li.id="";
    get data into dataset or datatable

    li.datasource=tablename;
    li.datatextfield="field_name";
    li.datavaluefield="field_name"
    li.databind();


    I hope it helps you .
    0