Click here to Skip to main content
15,923,689 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Winforms Question Pin
batmike200031-May-06 20:28
batmike200031-May-06 20:28 
GeneralRe: Winforms Question Pin
batmike20001-Jun-06 23:58
batmike20001-Jun-06 23:58 
QuestionAuthentication Pin
Anu_Bala31-May-06 2:16
Anu_Bala31-May-06 2:16 
AnswerRe: Authentication Pin
Tim Carmichael31-May-06 3:11
Tim Carmichael31-May-06 3:11 
QuestionDataGridView - prevent selection highlighting Pin
mdsffm31-May-06 0:54
mdsffm31-May-06 0:54 
AnswerRe: DataGridView - prevent selection highlighting Pin
sathish s31-May-06 2:42
sathish s31-May-06 2:42 
AnswerRe: DataGridView - ignore the previous post Pin
sathish s31-May-06 2:43
sathish s31-May-06 2:43 
AnswerRe: DataGridView - prevent selection highlighting Pin
Kschuler31-May-06 4:11
Kschuler31-May-06 4:11 
I had this same problem once, and I never really figured out a good way to do it. I ended up kinda cheating and just setting the selection highlight to the same color that the row was already. You can set the default row highlight and the alternating row highlight if you use different colors for alternating rows. Here's the code I used:

MyGridView.DefaultCellStyle.SelectionBackColor = Color.White<br />
MyGridView.DefaultCellStyle.SelectionForeColor = Color.Black<br />
MyGridView.AlternatingRowsDefaultCellStyle.SelectionBackColor = My.Settings.ContrastBackColor<br />
MyGridView.AlternatingRowsDefaultCellStyle.SelectionForeColor = My.Settings.ContrastFontColor


Let me know if you find a nicer way!
GeneralRe: DataGridView - prevent selection highlighting Pin
mdsffm31-May-06 4:18
mdsffm31-May-06 4:18 
Questionmediadet getbitmapbits in vb.net Pin
asadn14731-May-06 0:41
asadn14731-May-06 0:41 
QuestionColor listbox Pin
mikica1731-May-06 0:02
mikica1731-May-06 0:02 
AnswerRe: Color listbox Pin
Mekong River31-May-06 0:07
Mekong River31-May-06 0:07 
QuestionToolStrip Pin
Socheat.Net30-May-06 23:26
Socheat.Net30-May-06 23:26 
AnswerRe: ToolStrip Pin
Mekong River31-May-06 0:11
Mekong River31-May-06 0:11 
QuestionToolStrip ComboBox Pin
Socheat.Net30-May-06 23:12
Socheat.Net30-May-06 23:12 
AnswerRe: ToolStrip ComboBox Pin
Mekong River31-May-06 0:10
Mekong River31-May-06 0:10 
GeneralRe: ToolStrip ComboBox Pin
Socheat.Net7-Jun-06 23:15
Socheat.Net7-Jun-06 23:15 
GeneralRe: ToolStrip ComboBox Pin
Mekong River7-Jun-06 23:31
Mekong River7-Jun-06 23:31 
QuestionVB.NET Image Pin
Socheat.Net30-May-06 23:05
Socheat.Net30-May-06 23:05 
AnswerRe: VB.NET Image Pin
Mekong River31-May-06 0:18
Mekong River31-May-06 0:18 
AnswerRe: VB.NET Image Pin
Steven J Jowett9-Jun-06 0:06
Steven J Jowett9-Jun-06 0:06 
GeneralRe: VB.NET Image Pin
Socheat.Net11-Jun-06 21:36
Socheat.Net11-Jun-06 21:36 
Questiongeneration of XML file Pin
Malayasen30-May-06 21:51
Malayasen30-May-06 21:51 
AnswerRe: generation of XML file Pin
Mekong River31-May-06 0:20
Mekong River31-May-06 0:20 
QuestionHelp me please,How to ... Pin
SiamBrain.NET30-May-06 21:28
SiamBrain.NET30-May-06 21:28 

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.