work the webgrid with estructur

1 reply. Last post: January 3, 2010 11:03 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Johnny LeyvaMember

please sent me a example for how work the webgrid with estructur for example

Public Shared datData As New DataTable("detalle")

Shared datData As New DataTable("detalle")Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Handles Me.Load If Not IsPostBack Then

DataDetalle()

End If End Sub Protected Sub DataDetalle()

datData.Columns.Clear()

datData.Columns.Add(
"po", GetType(String)) datData.Columns.Add("po_item", GetType(String)) datData.Columns.Add("uom", GetType(String)) datData.Columns.Add("quantity_po", GetType(Decimal)) datData.Columns.Add("idcatalog", GetType(Integer)) datData.Columns.Add("delivery_date", GetType(Date)) datData.Columns.Add("quantity_received", GetType(Decimal)) datData.Columns.Add("price_po", GetType(Decimal)) datData.Columns.Add("price_total", GetType(Decimal)) datData.Columns.Add("idstatus", GetType(Integer)) End Sub

 

Protected Sub wgDetalle_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles wgDetalle.InitializeDataSource

e.DataSource = datData

wgDetalle.DataMember =
"detalle" End Sub

 

i'm using methods insert row, modify and delete row.
but I have trouble making validations. for example repeated item

All times are GMT -5. The time now is 5:04 AM.
Previous Next