Login    
 
 
 
 
Text/HTML
  
You are here :: Blogs Saturday, May 19, 2012

Search
Note: This uses the internal blog search engine. The Google search engine is also available at the top of the page.
  
Disclaimer

Please review the site disclaimer before downloading or using content found on this site

  
Categories
  
DEVSHED Blog
As always, I welcome your comments!
Apr 24

Written by: Steve Gray
4/24/2010 5:44 PM  RssIcon

Here’s a code sample for the Janus Grid CellUpdated event

Code Snippet
  1. Private Sub GridEX1_CellUpdated(ByVal sender As Object, ByVal e As Janus.Windows.GridEX.ColumnActionEventArgs) Handles GridEX1.CellUpdated
  2.     Dim dblMasterQuantity As String = Me.GridEX1.GetValue("masterquantity")
  3.     Dim dblQtyBaseUofM As String = Me.GridEX1.GetValue("qtybsuom")
  4.     If dblQtyBaseUofM = 1 Then
  5.         Exit Sub
  6.     End If
  7.  
  8.     If dblMasterQuantity / dblQtyBaseUofM <> 0 Then
  9.         Dim dblMod = dblMasterQuantity Mod dblQtyBaseUofM
  10.         Dim dblNewQty As Double = dblMasterQuantity - dblMod + dblQtyBaseUofM
  11.         Me.GridEX1.SetValue("masterQuantity", dblNewQty)
  12.     End If
  13.  
  14. End Sub

Tags:
Categories:
As always, I welcome your comments!
  
 
 
Home | Products | Blogs | Contact Us | Links | God's Plan
Privacy Statement | Terms Of Use
 
Copyright 2011 by Devshed.us