Click here to Skip to main content
15,917,862 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: randomize answers in quiz Pin
Paul Conrad22-Nov-06 12:12
professionalPaul Conrad22-Nov-06 12:12 
AnswerRe: randomize answers in quiz Pin
Christian Graus22-Nov-06 7:34
protectorChristian Graus22-Nov-06 7:34 
QuestionChanging background color of datagrid cells in vb.net Pin
Silver-Grey22-Nov-06 6:37
Silver-Grey22-Nov-06 6:37 
AnswerRe: Changing background color of datagrid cells in vb.net Pin
jsampsonPC22-Nov-06 6:55
jsampsonPC22-Nov-06 6:55 
GeneralRe: Changing background color of datagrid cells in vb.net Pin
Silver-Grey22-Nov-06 7:21
Silver-Grey22-Nov-06 7:21 
GeneralRe: Changing background color of datagrid cells in vb.net Pin
jsampsonPC22-Nov-06 7:29
jsampsonPC22-Nov-06 7:29 
GeneralRe: Changing background color of datagrid cells in vb.net Pin
Silver-Grey22-Nov-06 8:33
Silver-Grey22-Nov-06 8:33 
GeneralRe: Changing background color of datagrid cells in vb.net Pin
jsampsonPC22-Nov-06 9:20
jsampsonPC22-Nov-06 9:20 
Calm down, no need for caps - I'm trying to help you here Smile | :)

I coded this, and it worked as you requested.

For Each dgvc As DataGridViewColumn In dgvTableList.Columns
     
     If dgvc.HeaderText = "name" Then
        dgvc.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells
     ElseIf dgvc.HeaderText = "crdate" Then
        dgvc.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
        dgvc.DefaultCellStyle.BackColor = Color.Aquamarine
     Else
        dgvc.Visible = False
     End If

Next


If that code doesn't work for you, I'm unable to help you any further as I have no experience with .NET prior to the 2.0 Framework.

Jonathan Sampson
www.SampsonResume.com

Questionhidden database Pin
licec22-Nov-06 4:48
licec22-Nov-06 4:48 
AnswerRe: hidden database Pin
Dave Kreskowiak22-Nov-06 5:09
mveDave Kreskowiak22-Nov-06 5:09 
Questionsend a picture to msword Pin
licec22-Nov-06 4:40
licec22-Nov-06 4:40 
AnswerRe: send a picture to msword Pin
b43r_3oo322-Nov-06 20:41
b43r_3oo322-Nov-06 20:41 
Questionvb6 typeof question Pin
Russell Jones22-Nov-06 4:31
Russell Jones22-Nov-06 4:31 
AnswerRe: vb6 typeof question Pin
Russell Jones22-Nov-06 4:35
Russell Jones22-Nov-06 4:35 
QuestionNeed help getting values from a form Pin
darkchronos22-Nov-06 4:31
darkchronos22-Nov-06 4:31 
AnswerRe: Need help getting values from a form Pin
Taylor Kobani22-Nov-06 21:10
Taylor Kobani22-Nov-06 21:10 
Questionevent log Listener Pin
ONeil Tomlinson22-Nov-06 4:13
ONeil Tomlinson22-Nov-06 4:13 
AnswerRe: event log Listener Pin
Johan Hakkesteegt26-Nov-06 22:21
Johan Hakkesteegt26-Nov-06 22:21 
QuestionHelp using control collection Pin
Magno R. Vasquez22-Nov-06 3:48
Magno R. Vasquez22-Nov-06 3:48 
GeneralRe: Help using control collection Pin
hollywood_t22-Nov-06 4:14
hollywood_t22-Nov-06 4:14 
AnswerRe: Help using control collection Pin
hollywood_t24-Nov-06 5:41
hollywood_t24-Nov-06 5:41 
QuestionMarshal arrays of strings - how to? Pin
marccp22-Nov-06 3:45
marccp22-Nov-06 3:45 
AnswerRe: Marshal arrays of strings - how to? Pin
Johan Hakkesteegt23-Nov-06 23:20
Johan Hakkesteegt23-Nov-06 23:20 
GeneralRe: Marshal arrays of strings - how to? Pin
marccp26-Nov-06 23:09
marccp26-Nov-06 23:09 
GeneralRe: Marshal arrays of strings - how to? Pin
Johan Hakkesteegt27-Nov-06 0:02
Johan Hakkesteegt27-Nov-06 0:02 

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.