Include this using statement:
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinGrid;
--- In vantage@yahoogroups.com, "jgiese1988" <epicor-team@...> wrote:
>
> Object explorer indicates that it is UltraGridRow but i am getting an "are you missing a using directive or an assembly reference?" on this guy
>
> foreach (UltraGridRow r in grdList.Rows)
> {
> EpiMessageBox.Show(r["PartNum"].ToString());
> }
>
> --- In vantage@yahoogroups.com, John Driggers <waffqle@> wrote:
> >
> > You can actually just loop through the rows directly on the grid.
> >
> > foreach (UltraGridRow ugr in myUltraGrid.Rows)
> > {}
> >
> > That may not be the exact type for the row object, but you get the idea.
> >
> > *John Driggers*
> > **
> > *Chief Data Wrangler*
> > *
> > *
> > *I have an Epicor blog <http://usdoingstuff.com/>. How useful is that?*
> > *
> > *:: 904.404.9233
> > :: waffqle@
> > :: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>
> >
> > *
> >
> > *
> >
> >
> >
> > On Wed, Oct 17, 2012 at 9:44 AM, jgiese1988 <
> > epicor-team@> wrote:
> >
> > > **
> > >
> > >
> > > So something to the effect of this psudo code:
> > >
> > > DataTable dt = (DataTable)grid.DataSource
> > >
> > > foreach (DataRow r in dt)
> > > {
> > > if(r["PartNum"] = lfo.ContextValue)
> > > {
> > > grid.Selected(????)
> > >
> > > }
> > > }
> > >
> > > --- In vantage@yahoogroups.com, John Driggers <waffqle@> wrote:
> > > >
> > > > You need to get a reference to the grid itself. Then you can loop through
> > > > the rows to find the one one with the matching part number. Once you find
> > > > the row you need, set the 'selected' property to true.
> > > >
> > > > *John Driggers*
> > > > **
> > > > *Chief Data Wrangler*
> > > > *
> > > > *
> > > > *I have an Epicor blog <http://usdoingstuff.com/>. How useful is that?*
> > > > *
> > > > *:: 904.404.9233
> > > > :: waffqle@
> > > > :: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>
> > > >
> > > > *
> > >
> > > >
> > > > *
> > > >
> > > >
> > > >
> > > > On Tue, Oct 16, 2012 at 4:59 PM, Anon
> > > > <epicor-team@>wrote:
> > > >
> > > > > **
> > >
> > > > >
> > > > >
> > > > > I am passing a job and part number into the Return Assembly Material
> > > > > Request form. The job number loads automatically and a grid is filled
> > > with
> > > > > the materials issued to that job. I would like to use the passed in
> > > part
> > > > > number to automatically select the row in the request lines grid with
> > > the
> > > > > same part number.
> > > > >
> > > > > Where do I start with this? I did a trace and changing rows in the grid
> > > > > has no method attached to it, that I'm not actually changing records
> > > of any
> > > > > kind.
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>