Friday, June 28, 2013

LINQ VB.NET CODE SNIPPET

Private Sub FillServiceCategory()
        cmbSrvCat.DataValueField = "SRVC_SUM_ID"
        cmbSrvCat.DataTextField = "SRVC_SUM_DESC"
 
        cmbSrvCat.DataSource = db.tbl_Service_Summary.OrderBy(Function(x) x.SRVC_SUM_DESC).ToList()
 
        cmbSrvCat.DataBind()
 
        cmbSrvCat.Items.Insert(0, New RadComboBoxItem(""))
    End Sub
Post a Comment