Website Design United States, Website Design California, Website Designing United States, Website Designing California

Set Row color in DataGrif Web From

Public

theDataSet As

DataSet Private Sub Page_Load (ByVal sender As System.Object, ByVal e As System.

EventArgs

)

Handles MyBase

.Load If Not IsPostBack

Then DataGrid1.DataSource = theDataset ' populate Dataset from Call to Web Service DataGrid1.

DataBind

()

End If End Sub Private Sub DataGrid1_ItemCreated(ByVal sender As Object, ByVal e As _ DataGridItemEventArgs)

Handles DataGrid1.ItemCreated If (e.Item.ItemIndex <> -1)

Then Dim strTest As String = theDataSet.Tables(0).Rows(e.Item.ItemIndex).Item(7)

If ((InStr(1, strTest, "NC") <> 0)

Or

InStr(1, strTest, "ICE") <> 0) Then e.Item.BackColor = System.Drawing.Color.LightPink

End

End If

End Sub



    Enquiry
 






    Contact us
340 W, 26th Street, Suite F, National City, California - 91950 United States
Tel : 818-667-2853
Info@webbgirrl.com

















 

 

 

 

 

 

 

 

 

 

Ajax Technologies | Foodgear Shop| Lowest Unique Bid Auction | Our Team | Terms And Condition | What is encapsulation | MustInherit class with parameters in the constructor | How to extract src from img elements in html code | How to extract url and anchor from html content | Grab the content of a webpage using C | How to extract the host name from an url C| How to send an email using smtp C | How to remove html tags from web content C | How to convert date time to sql valid string | Set row color in datagrif web from | Disclaimer | How to refresh the data in an xml reader object | Aprendiendo ms access 2000 en 24 horas | Microsoft visual C++ net step by step | Possible to disable a row in listview | Designing sql server 2000 databases for net enterprise | Biztalk server 2000 developer guide for net
© 2008-2009 webbgirrl.com