Grid Row Select in code

Include this using statement:
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]
> >
>
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.
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]
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]
>
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]
I use this recursive method, hope it helps :

private static void selectActiveProjectsRow(string as_projectId,
RowsCollection ao_rows)
{

// iterate grid rows to find row that matches projectid and select it
try
{
for ( int i = 0; i < ao_rows.Count; i++ )
{
// if groupby row, look at it's child rows
if ( ao_rows[i] is UltraGridGroupByRow )
{
selectActiveProjectsRow(as_projectId,
((UltraGridGroupByRow)ao_rows[i]).Rows);
}
else
{
// If the row is a regular row, then see if it matches our
projectId
UltraGridRow lo_row = ao_rows[i];
if (lo_row.Cells[0].Text == as_projectId)
{
epiUltraGridActiveProjects.ActiveRow=lo_row;
lo_row.Selected=true;
if (lo_row.ParentRow != null && lo_row.ParentRow is
UltraGridGroupByRow)
((UltraGridGroupByRow)lo_row.ParentRow).Expanded=true;
}
else
{
lo_row.Selected=false;
}
}
}
}
catch (Exception ex)
{
// do nothing
}
}



--- 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]
>




[Non-text portions of this message have been removed]
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]
>
You need to add a couple of the infragistics dlls, look for the ones that
say 'ultragrid' in the name. You may need the 'shared' dll as well.

*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 11:21 AM, 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]
> >
>
>
>


[Non-text portions of this message have been removed]
You need to add a using for the ultragrid, cant remember out of the top
ofmy head but something like
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;



*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Wed, Oct 17, 2012 at 11:21 AM, 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]
> >
>
>
>


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

using System.Collections.Generic;
using Infragistics.Win.UltraWinGrid;

private void ReturnAssyMtlRequestForm_Load(object sender, EventArgs args)
{
if (ReturnAssyMtlRequestForm.LaunchFormOptions.ContextValue != null)
{
// Get passed values
List<object> ctxVal = new List<object>();
ctxVal = (List<object>)ReturnAssyMtlRequestForm.LaunchFormOptions.ContextValue;
string jobNum = ctxVal[0].ToString();
string partNum = ctxVal[1].ToString();
string lotNum = ctxVal[2].ToString();

// Create new request
oTrans.GetNewAssyMtlInfo(jobNum);

// Load specific part
if(grdList.Rows.Count > 0)
{
foreach (UltraGridRow r in grdList.Rows)
{
if(r.Cells["PartNum"].Value.ToString() == partNum)
{
edvReqLines.Row = r.Index;
edvReqLines.Notify(new EpiNotifyArgs(oTrans, edvReqLines.Row, edvReqLines.Column));
}
}
}
}
}

--- In vantage@yahoogroups.com, John Driggers <waffqle@...> wrote:
>
> You need to add a couple of the infragistics dlls, look for the ones that
> say 'ultragrid' in the name. You may need the 'shared' dll as well.
>
> *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 11:21 AM, 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]
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>