none
DataGrid RRS feed

  • Question

  • Hello everybody!

    I have a datagrid wich is binded to a table that returns me 3 columns, for example col1, col2, col3. Then a I have created another sql statement wich returns me col1, col2. Can i dynamically change my  datagrid so that it could show me these 2 columns, or i should create another datagrid and tableadapter and bind this tableadapter  to newly created datagrid.
    I'm using compact framework 2.0.
    Thanks in advance.
    • Edited by Sharov A Wednesday, July 8, 2009 3:59 PM
    Wednesday, July 8, 2009 1:56 PM

Answers

  • hi,

    yes u can dyanamicly change the datagrid datasource, and there is no need of taking anothere datagrid for this, always set the datagrid datasource to nothing before binding the new datasource

    thanx
    • Marked as answer by Sharov A Thursday, July 9, 2009 8:44 AM
    Thursday, July 9, 2009 7:28 AM

All replies

  • Any suggestions?
    Thursday, July 9, 2009 7:01 AM
  • hi,

    yes u can dyanamicly change the datagrid datasource, and there is no need of taking anothere datagrid for this, always set the datagrid datasource to nothing before binding the new datasource

    thanx
    • Marked as answer by Sharov A Thursday, July 9, 2009 8:44 AM
    Thursday, July 9, 2009 7:28 AM