How to add dataset to datagridview at runtime??

i want to associate the table present in the dataset with the datagridview during runtime.how do i do that..

thanks,

nhd



Answer this question

How to add dataset to datagridview at runtime??

  • Rudi Groenewald

    //The following assumptions have been made:
    //ds = DataSet and has at least 1 table inside which is accessed via the Tables array as shown below.
    //BEGIN CODE
    dataGridView1.DataSource = ds.Tables[0];
    //END CODE

  • How to add dataset to datagridview at runtime??