Hide rows in a grid

Thanks Bernie!

Brian

--- In vantage@yahoogroups.com, "Daniel Laidig" <daniellaidig@...>
wrote:
>
> Very nice. Thanks for the code!
>
>
>
> Daniel
>
> _____
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
Behalf Of
> Bernie Walker
> Sent: Tuesday, July 22, 2008 7:36 PM
> To: 'vantage@yahoogroups.com'
> Subject: RE: [Vantage] Hide rows in a grid
>
>
>
> '//**************************************************
> '// Custom VB.NET code for PartForm
> '// Created: 7/22/2008 6:29:37 PM
> '//**************************************************
> Imports System
> Imports System.Data
> Imports System.Diagnostics
> Imports System.Windows.Forms
> Imports System.ComponentModel
> Imports Microsoft.VisualBasic
> Imports Epicor.Mfg.UI
> Imports Epicor.Mfg.UI.FrameWork
> Imports Epicor.Mfg.UI.ExtendedProps
> Imports Epicor.Mfg.UI.FormFunctions
> Imports Epicor.Mfg.UI.Customization
> Imports Epicor.Mfg.UI.Adapters
> Imports Epicor.Mfg.UI.Searches
> Imports Epicor.Mfg.BO
>
> Module Script
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard
Added Module
> Level Variables' Comments! **
> '// Begin Wizard Added Module Level Variables **
>
> '// End Wizard Added Module Level Variables **
>
> '// Add Custom Module Level Variables Here **
> Private WithEvents gRevisions As EpiUltraGrid
>
> Sub InitializeCustomCode()
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added
> Variable Intialization' lines **
> '// Begin Wizard Added Variable Intialization
>
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
>
> '// End Custom Method Calls
> End Sub
>
> Sub DestroyCustomCode()
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard
Added Object
> Disposal' lines **
> '// Begin Wizard Added Object Disposal
>
> '// End Wizard Added Object Disposal
> '// Begin Custom Code Disposal
>
> '// End Custom Code Disposal
> End Sub
>
> Private Sub PartForm_Load(ByVal sender As object, ByVal args As
EventArgs)
> Handles PartForm.Load
> '//
> '// Add Event Handler Code
> '//
> gRevisions =
> CType(csm.GetNativeControlReference("86fb7bf3-f52e-4d9a-9d96-
30551ee51ecf"),
> EpiUltraGrid)
>
> End Sub
>
> Private Sub gRevisions_InitializeRow(ByVal Sender As Object, ByVal
Args As
> Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles
> gRevisions.InitializeRow '// you will need to create an event
handler for
> each grid you specified above
> '// ** Place Event Handling Code Here **
> If Args.Row.Band.Index = 0 Then
>
> If Args.Row.Cells("RevShortDesc").Value = "Obsolete" Then
> Args.Row.Hidden = True
> End If
> End If
> End Sub
>
> End Module
>
> -----Original Message-----
> From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> [mailto:vantage@yahoogroups <mailto:vantage%
40yahoogroups.com> .com] On
> Behalf Of bdmang_83
> Sent: Tuesday, July 22, 2008 4:05 PM
> To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
> Subject: [Vantage] Hide rows in a grid
>
> Good afternoon,
>
> Our Engineers would like us to hide any parts with obsolete
revisions
> on the Part Maiteneance --> Revisions --> List Tab.
>
> I have tried everything I can think of without any luck yet.
>
> Thanks in advance for any suggestions.
>
> Brian
>
> ------------------------------------
>
> 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.
> <http://groups.yahoo.com/group/vantage/files/>
> yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto: http://groups.
> <http://groups.yahoo.com/group/vantage/messages>
> yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups. <http://groups.yahoo.com/group/vantage/linksYahoo>
> yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Good afternoon,

Our Engineers would like us to hide any parts with obsolete revisions
on the Part Maiteneance --> Revisions --> List Tab.

I have tried everything I can think of without any luck yet.

Thanks in advance for any suggestions.

Brian
'//**************************************************
'// Custom VB.NET code for PartForm
'// Created: 7/22/2008 6:29:37 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO


Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **
Private WithEvents gRevisions As EpiUltraGrid


Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls

'// End Custom Method Calls
End Sub



Sub DestroyCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal
End Sub



Private Sub PartForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles PartForm.Load
'//
'// Add Event Handler Code
'//
gRevisions = CType(csm.GetNativeControlReference("86fb7bf3-f52e-4d9a-9d96-30551ee51ecf"), EpiUltraGrid)

End Sub


Private Sub gRevisions_InitializeRow(ByVal Sender As Object, ByVal Args As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles gRevisions.InitializeRow '// you will need to create an event handler for each grid you specified above
'// ** Place Event Handling Code Here **
If Args.Row.Band.Index = 0 Then

If Args.Row.Cells("RevShortDesc").Value = "Obsolete" Then
Args.Row.Hidden = True
End If
End If
End Sub


End Module

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of bdmang_83
Sent: Tuesday, July 22, 2008 4:05 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Hide rows in a grid


Good afternoon,

Our Engineers would like us to hide any parts with obsolete revisions
on the Part Maiteneance --> Revisions --> List Tab.

I have tried everything I can think of without any luck yet.

Thanks in advance for any suggestions.

Brian



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

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
Very nice. Thanks for the code!



Daniel

_____

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Bernie Walker
Sent: Tuesday, July 22, 2008 7:36 PM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] Hide rows in a grid



'//**************************************************
'// Custom VB.NET code for PartForm
'// Created: 7/22/2008 6:29:37 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO

Module Script

'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module
Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **

'// Add Custom Module Level Variables Here **
Private WithEvents gRevisions As EpiUltraGrid

Sub InitializeCustomCode()

'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls

'// End Custom Method Calls
End Sub

Sub DestroyCustomCode()

'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object
Disposal' lines **
'// Begin Wizard Added Object Disposal

'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal

'// End Custom Code Disposal
End Sub

Private Sub PartForm_Load(ByVal sender As object, ByVal args As EventArgs)
Handles PartForm.Load
'//
'// Add Event Handler Code
'//
gRevisions =
CType(csm.GetNativeControlReference("86fb7bf3-f52e-4d9a-9d96-30551ee51ecf"),
EpiUltraGrid)

End Sub

Private Sub gRevisions_InitializeRow(ByVal Sender As Object, ByVal Args As
Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles
gRevisions.InitializeRow '// you will need to create an event handler for
each grid you specified above
'// ** Place Event Handling Code Here **
If Args.Row.Band.Index = 0 Then

If Args.Row.Cells("RevShortDesc").Value = "Obsolete" Then
Args.Row.Hidden = True
End If
End If
End Sub

End Module

-----Original Message-----
From: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
[mailto:vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com] On
Behalf Of bdmang_83
Sent: Tuesday, July 22, 2008 4:05 PM
To: vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com
Subject: [Vantage] Hide rows in a grid

Good afternoon,

Our Engineers would like us to hide any parts with obsolete revisions
on the Part Maiteneance --> Revisions --> List Tab.

I have tried everything I can think of without any luck yet.

Thanks in advance for any suggestions.

Brian

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

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.
<http://groups.yahoo.com/group/vantage/files/>
yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.
<http://groups.yahoo.com/group/vantage/messages>
yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups. <http://groups.yahoo.com/group/vantage/linksYahoo>
yahoo.com/group/vantage/linksYahoo! Groups Links





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