Clearing Ultragrids

Rob,

Thanks so much. That works perfectly!

Ross


--- In vantage@yahoogroups.com, "Rob Bucek" <rbucek@...> wrote:
>
> When you want the grid to clear, i.e. on creation of a new record etc.
> try something like this..
>
> While ugdEpiCustom2.rows.count > 0
> ugdEpiCustom2.rows(0).delete(false)
>
> Rob Bucek
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Waffqle
> Sent: Tuesday, September 13, 2011 9:57 PM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] Re: Clearing Ultragrids
>
> That would be my approach.
>
> On Tue, Sep 13, 2011 at 9:46 PM, rossh777 <ross.hughes3@...>
> wrote:
>
> > **
> >
> >
> > That is true. In my case I would like it to clear when I bring up a
> > new record.
> >
> > Do I have to create a generic and empty dataset in these cases?
> >
> > Thanks for your response,
> > Ross
> >
> >
> > --- In vantage@yahoogroups.com, Waffqle <waffqle@> wrote:
> > >
> > > I believe if you just rebind it to the new dataset it'll
> > > automatically remove the old stuff.
> > >
> > > On Tue, Sep 13, 2011 at 5:10 PM, rossh777 <ross.hughes3@> wrote:
> > >
> > > > **
> > > >
> > > >
> > > > While using UD100, I am getting data from the
> > > > orderdtlsearchadapter
> > (using
> > > > listlookup) on click of a button and pushing it to a grid with:
> > > >
> > > > Grid.DataSource = dsData
> > > >
> > > > After sending data to the grid, I hide some columns.
> > > >
> > > > I want to clear the grid when going to the next UD100 record. I
> > > > can use
> > the
> > > > listchange event and use the following to clear the grid:
> > > >
> > > > Grid.DataSource = Nothing
> > > >
> > > > After this, whenever I try to push more data to the grid it gives
> > > > me 'parameter - key not found' errors among others. If I do the
> following:
> > > >
> > > > Grid.DataSource = Nothing
> > > > Grid.ResetDisplayLayout ()
> > > > Grid.Layouts.Clear()
> > > >
> > > > ...it will clear the grid and accept new data, but the next time I
> > assign
> > > > data it connects data to a child node (little triangle) in the
> > > > grid and eventually errors out.
> > > >
> > > > What is the best way to clear an Ultragrid in this scenario, and
> > > > subsequently repopulate while avoiding this problem?
> > > >
> > > > Thanks in advance,
> > > > Ross
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > *Waffqle Driggers*
> >
> > > *High End Dev, System Design, Profit Drinking
> > > *
> > > *:: 904.962.2887*
> > > *:: waffqle@*
> > > *:: NO FAXES*
> > >
> > > *
> > >
> > > *
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
> >
> >
>
>
>
> --
> *Waffqle Driggers*
> *High End Dev, System Design, Profit Drinking
> *
> *:: 904.962.2887*
> *:: waffqle@...*
> *:: NO FAXES*
>
> *
>
> *
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder
> and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
While using UD100, I am getting data from the orderdtlsearchadapter (using listlookup) on click of a button and pushing it to a grid with:

Grid.DataSource = dsData

After sending data to the grid, I hide some columns.

I want to clear the grid when going to the next UD100 record. I can use the listchange event and use the following to clear the grid:

Grid.DataSource = Nothing

After this, whenever I try to push more data to the grid it gives me 'parameter - key not found' errors among others. If I do the following:

Grid.DataSource = Nothing
Grid.ResetDisplayLayout ()
Grid.Layouts.Clear()

...it will clear the grid and accept new data, but the next time I assign data it connects data to a child node (little triangle) in the grid and eventually errors out.

What is the best way to clear an Ultragrid in this scenario, and subsequently repopulate while avoiding this problem?

Thanks in advance,
Ross
I believe if you just rebind it to the new dataset it'll automatically
remove the old stuff.

On Tue, Sep 13, 2011 at 5:10 PM, rossh777 <ross.hughes3@...> wrote:

> **
>
>
> While using UD100, I am getting data from the orderdtlsearchadapter (using
> listlookup) on click of a button and pushing it to a grid with:
>
> Grid.DataSource = dsData
>
> After sending data to the grid, I hide some columns.
>
> I want to clear the grid when going to the next UD100 record. I can use the
> listchange event and use the following to clear the grid:
>
> Grid.DataSource = Nothing
>
> After this, whenever I try to push more data to the grid it gives me
> 'parameter - key not found' errors among others. If I do the following:
>
> Grid.DataSource = Nothing
> Grid.ResetDisplayLayout ()
> Grid.Layouts.Clear()
>
> ...it will clear the grid and accept new data, but the next time I assign
> data it connects data to a child node (little triangle) in the grid and
> eventually errors out.
>
> What is the best way to clear an Ultragrid in this scenario, and
> subsequently repopulate while avoiding this problem?
>
> Thanks in advance,
> Ross
>
>
>



--
*Waffqle Driggers*
*High End Dev, System Design, Profit Drinking
*
*:: 904.962.2887*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]
That is true. In my case I would like it to clear when I bring up a new record.

Do I have to create a generic and empty dataset in these cases?

Thanks for your response,
Ross

--- In vantage@yahoogroups.com, Waffqle <waffqle@...> wrote:
>
> I believe if you just rebind it to the new dataset it'll automatically
> remove the old stuff.
>
> On Tue, Sep 13, 2011 at 5:10 PM, rossh777 <ross.hughes3@...> wrote:
>
> > **
> >
> >
> > While using UD100, I am getting data from the orderdtlsearchadapter (using
> > listlookup) on click of a button and pushing it to a grid with:
> >
> > Grid.DataSource = dsData
> >
> > After sending data to the grid, I hide some columns.
> >
> > I want to clear the grid when going to the next UD100 record. I can use the
> > listchange event and use the following to clear the grid:
> >
> > Grid.DataSource = Nothing
> >
> > After this, whenever I try to push more data to the grid it gives me
> > 'parameter - key not found' errors among others. If I do the following:
> >
> > Grid.DataSource = Nothing
> > Grid.ResetDisplayLayout ()
> > Grid.Layouts.Clear()
> >
> > ...it will clear the grid and accept new data, but the next time I assign
> > data it connects data to a child node (little triangle) in the grid and
> > eventually errors out.
> >
> > What is the best way to clear an Ultragrid in this scenario, and
> > subsequently repopulate while avoiding this problem?
> >
> > Thanks in advance,
> > Ross
> >
> >
> >
>
>
>
> --
> *Waffqle Driggers*
> *High End Dev, System Design, Profit Drinking
> *
> *:: 904.962.2887*
> *:: waffqle@...*
> *:: NO FAXES*
>
> *
>
> *
>
>
> [Non-text portions of this message have been removed]
>
That would be my approach.

On Tue, Sep 13, 2011 at 9:46 PM, rossh777 <ross.hughes3@...> wrote:

> **
>
>
> That is true. In my case I would like it to clear when I bring up a new
> record.
>
> Do I have to create a generic and empty dataset in these cases?
>
> Thanks for your response,
> Ross
>
>
> --- In vantage@yahoogroups.com, Waffqle <waffqle@...> wrote:
> >
> > I believe if you just rebind it to the new dataset it'll automatically
> > remove the old stuff.
> >
> > On Tue, Sep 13, 2011 at 5:10 PM, rossh777 <ross.hughes3@...> wrote:
> >
> > > **
> > >
> > >
> > > While using UD100, I am getting data from the orderdtlsearchadapter
> (using
> > > listlookup) on click of a button and pushing it to a grid with:
> > >
> > > Grid.DataSource = dsData
> > >
> > > After sending data to the grid, I hide some columns.
> > >
> > > I want to clear the grid when going to the next UD100 record. I can use
> the
> > > listchange event and use the following to clear the grid:
> > >
> > > Grid.DataSource = Nothing
> > >
> > > After this, whenever I try to push more data to the grid it gives me
> > > 'parameter - key not found' errors among others. If I do the following:
> > >
> > > Grid.DataSource = Nothing
> > > Grid.ResetDisplayLayout ()
> > > Grid.Layouts.Clear()
> > >
> > > ...it will clear the grid and accept new data, but the next time I
> assign
> > > data it connects data to a child node (little triangle) in the grid and
> > > eventually errors out.
> > >
> > > What is the best way to clear an Ultragrid in this scenario, and
> > > subsequently repopulate while avoiding this problem?
> > >
> > > Thanks in advance,
> > > Ross
> > >
> > >
> > >
> >
> >
> >
> > --
> > *Waffqle Driggers*
>
> > *High End Dev, System Design, Profit Drinking
> > *
> > *:: 904.962.2887*
> > *:: waffqle@...*
> > *:: NO FAXES*
> >
> > *
> >
> > *
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>



--
*Waffqle Driggers*
*High End Dev, System Design, Profit Drinking
*
*:: 904.962.2887*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]
When you want the grid to clear, i.e. on creation of a new record etc.
try something like this..

While ugdEpiCustom2.rows.count > 0
ugdEpiCustom2.rows(0).delete(false)

Rob Bucek

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Waffqle
Sent: Tuesday, September 13, 2011 9:57 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Clearing Ultragrids

That would be my approach.

On Tue, Sep 13, 2011 at 9:46 PM, rossh777 <ross.hughes3@...>
wrote:

> **
>
>
> That is true. In my case I would like it to clear when I bring up a
> new record.
>
> Do I have to create a generic and empty dataset in these cases?
>
> Thanks for your response,
> Ross
>
>
> --- In vantage@yahoogroups.com, Waffqle <waffqle@...> wrote:
> >
> > I believe if you just rebind it to the new dataset it'll
> > automatically remove the old stuff.
> >
> > On Tue, Sep 13, 2011 at 5:10 PM, rossh777 <ross.hughes3@...> wrote:
> >
> > > **
> > >
> > >
> > > While using UD100, I am getting data from the
> > > orderdtlsearchadapter
> (using
> > > listlookup) on click of a button and pushing it to a grid with:
> > >
> > > Grid.DataSource = dsData
> > >
> > > After sending data to the grid, I hide some columns.
> > >
> > > I want to clear the grid when going to the next UD100 record. I
> > > can use
> the
> > > listchange event and use the following to clear the grid:
> > >
> > > Grid.DataSource = Nothing
> > >
> > > After this, whenever I try to push more data to the grid it gives
> > > me 'parameter - key not found' errors among others. If I do the
following:
> > >
> > > Grid.DataSource = Nothing
> > > Grid.ResetDisplayLayout ()
> > > Grid.Layouts.Clear()
> > >
> > > ...it will clear the grid and accept new data, but the next time I
> assign
> > > data it connects data to a child node (little triangle) in the
> > > grid and eventually errors out.
> > >
> > > What is the best way to clear an Ultragrid in this scenario, and
> > > subsequently repopulate while avoiding this problem?
> > >
> > > Thanks in advance,
> > > Ross
> > >
> > >
> > >
> >
> >
> >
> > --
> > *Waffqle Driggers*
>
> > *High End Dev, System Design, Profit Drinking
> > *
> > *:: 904.962.2887*
> > *:: waffqle@...*
> > *:: NO FAXES*
> >
> > *
> >
> > *
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>



--
*Waffqle Driggers*
*High End Dev, System Design, Profit Drinking
*
*:: 904.962.2887*
*:: waffqle@...*
*:: NO FAXES*

*

*


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links