WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

How to clean the WebGrid?

Last post 07-06-2009, 13:19 by admin. 3 replies.
Sort Posts: Previous Next
  •  05-26-2009, 20:12 1032

    Hmm [^o)] How to clean the WebGrid?

    How to clean the WebGrid?

    I have a "WebGrid2" into "WebGrid1". How to Clean the WebGrids?

    <WG:Grid id="wgConsulEndososPol" .... .... >
    <Columns>   
           <WG:Text Title="ENDOSO NUM" ...  ></WG:Text>
           <WG:Text Title="NO DE POL"  ...   ></WG:Text>

                 <WG:ColumnTemplate ColumnId="wgConsulDataEndoso"  Visibility="Edit">         
                     <Controls>
                          <WG:Grid id="wgConsuDatosEndoso" title="Data Endoso" runat="server" .... >
                              <Columns>            
                                  <WG:Text Priority="1" Title="FECH_TRANSACCION" ... ></WG:Text>
                                  <WG:Text Priority="2" Title="Type_TRANSACCION" ... ></WG:Text>
                                  <WG:Text Priority="3" Title="ENTITY"... ></WG:Text>
                              </Columns>
                         </WG:Grid> 
                    </Controls>
              </WG:ColumnTemplate>   
    </Columns>
    </WG:Grid>

    Thanks for you help..  =D

  •  05-27-2009, 18:42 1033 in reply to 1032

    Re: How to clean the WebGrid?

    "Clean"?

    Olav Botterli, WebGrid Founding Developer

    Learn more with WebGrid Support Kit or Subscribe to WebGrid Announcements
  •  05-29-2009, 17:13 1038 in reply to 1032

    Re: How to clean the WebGrid?

    Clean or Clear ... however  =D

    I have a two WebGrids full  ( WebGrids1.DataSource= DataTable1 ,  WebGrids2.DataSource= DataTable2)

    I need to clean the 2 grids.

  •  07-06-2009, 13:19 1053 in reply to 1038

    Re: How to clean the WebGrid?

    Hi,

    You should either do a WebGrids1.Rows.Clear or WebGrids1.DataSource = null


    Olav Botterli, WebGrid Founding Developer

    Learn more with WebGrid Support Kit or Subscribe to WebGrid Announcements
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems