Click here to Skip to main content
15,913,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Web Form Newbie Pin
John Kuhn7-Mar-04 20:30
John Kuhn7-Mar-04 20:30 
QuestionScan IP and Computer Name on LAN? Pin
DaKhucBuon5-Mar-04 17:32
DaKhucBuon5-Mar-04 17:32 
AnswerRe: Scan IP and Computer Name on LAN? Pin
Daniel Turini5-Mar-04 17:48
Daniel Turini5-Mar-04 17:48 
GeneralRe: Scan IP and Computer Name on LAN? Pin
DaKhucBuon6-Mar-04 5:35
DaKhucBuon6-Mar-04 5:35 
GeneralRunning Other Office Applications w/ Excel Visual Basic Pin
rcheek20045-Mar-04 9:29
sussrcheek20045-Mar-04 9:29 
GeneralRe: Running Other Office Applications w/ Excel Visual Basic Pin
partyganger5-Mar-04 9:43
partyganger5-Mar-04 9:43 
QuestionHow to specified datagrid's row backcolor Pin
BigGirlBigEyes5-Mar-04 0:21
BigGirlBigEyes5-Mar-04 0:21 
AnswerRe: How to specified datagrid's row backcolor Pin
-Dr_X-5-Mar-04 16:02
-Dr_X-5-Mar-04 16:02 
You will have to do it in the ItemDataBound event. Every row that is created will fire this event before creating the actual row.

private grid_ItemDataBound(Byval sender as system.object, byval e as DataGridItemEventArgs) handles grid.ItemDataBound
  If e.item.itemtype = ListItemType.Item or ListItemType.AlternatingItem then
     'You can do this
     dim r as TableCellCollection = e.item.Cells
     r.item(0).BackColor = Color.Coral
     'or
     i = 0
     e.item.cells(i).BackColor = Color.FireBrick
  End if
end sub

Oops, I thought I was in the ASP.Net section. However, this still may be helpful.

Hope this helps,
Michael

I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
GeneralRe: How to specified datagrid's row backcolor Pin
BigGirlBigEyes7-Mar-04 5:05
BigGirlBigEyes7-Mar-04 5:05 
GeneralRecording reaction time Pin
VBgumbie4-Mar-04 17:24
VBgumbie4-Mar-04 17:24 
GeneralRe: Recording reaction time Pin
Dave Kreskowiak5-Mar-04 3:18
mveDave Kreskowiak5-Mar-04 3:18 
GeneralRe: Extract Icon Pin
xstoneheartx4-Mar-04 13:23
xstoneheartx4-Mar-04 13:23 
GeneralExtract Icon Pin
xstoneheartx4-Mar-04 12:48
xstoneheartx4-Mar-04 12:48 
GeneralRe: Extract Icon Pin
Dave Kreskowiak4-Mar-04 13:07
mveDave Kreskowiak4-Mar-04 13:07 
GeneralPostback & VB script Pin
Reed Eichner4-Mar-04 10:31
Reed Eichner4-Mar-04 10:31 
GeneralRe: Postback & VB script Pin
John Kuhn5-Mar-04 17:32
John Kuhn5-Mar-04 17:32 
GeneralData Grid Control Pin
arjumand4-Mar-04 9:47
arjumand4-Mar-04 9:47 
GeneralIF STATEMENT Pin
Fountain4-Mar-04 9:18
Fountain4-Mar-04 9:18 
GeneralRe: IF STATEMENT Pin
Dave Kreskowiak5-Mar-04 3:07
mveDave Kreskowiak5-Mar-04 3:07 
Generala Poor Student Pin
Anonymous4-Mar-04 8:51
Anonymous4-Mar-04 8:51 
GeneralRegarding Data Grid Control Pin
arjumand4-Mar-04 8:23
arjumand4-Mar-04 8:23 
GeneralCompile VBScript Pin
4-Mar-04 7:27
suss4-Mar-04 7:27 
GeneralRe: Compile VBScript Pin
Dave Kreskowiak4-Mar-04 7:57
mveDave Kreskowiak4-Mar-04 7:57 
GeneralRich Text Box with images (vb6) Pin
ReBeL3474-Mar-04 5:50
ReBeL3474-Mar-04 5:50 
GeneralRe: Rich Text Box with images (vb6) Pin
Dave Kreskowiak4-Mar-04 7:06
mveDave Kreskowiak4-Mar-04 7:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.