Just some sample code for you, edit as you wish (I think this is right from what I understand from your post)
Protected Sub GridView1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.GridItemEventArgs)
'Is it a GridDataItem
If (TypeOf (e.Item) Is GridDataItem) Then
'Get the instance of the right type
Dim dataBoundItem As GridDataItem = e.Item
'Check the formatting condition
If (Integer.Parse(dataBoundItem( "Size").Text) > GridItemType.Footer) Then
dataBoundItem( "Received").ForeColor = Color.Red
dataBoundItem( "Received").Font.Bold = True
Tnanks Jordan. But this is still somewhat too advanced for me.
This on the other hand seems to do the trick (in a maskedtextbox).
Public Class txtBase
Dim nSaveColor As Color
Private Sub txtBase_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.GotFocus
Me.nSaveColor = Me.BackColor
Me.BackColor = Color.Turquoise
Private Sub txtBase_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LostFocus
Me.BackColor = Me.nSaveColor
Well.... it seems to work. I'll wait some time before I set this thread as "solved". What do you think?
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...