Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threading question Pin
S. Senthil Kumar5-May-08 4:11
S. Senthil Kumar5-May-08 4:11 
GeneralRe: Threading question Pin
kensai5-May-08 21:28
kensai5-May-08 21:28 
Questionrunning script using Sqlcmd Pin
Denver Thomas5-May-08 3:45
Denver Thomas5-May-08 3:45 
QuestionInvalid Cast Problem using Enterprise Library MS DAAB (with dynamic dll loading) Pin
Pankaj Chamria5-May-08 3:21
Pankaj Chamria5-May-08 3:21 
QuestionAdding Active Directory Users to local Groups Pin
André Stroebel5-May-08 3:05
André Stroebel5-May-08 3:05 
AnswerRe: Adding Active Directory Users to local Groups Pin
André Stroebel5-May-08 3:26
André Stroebel5-May-08 3:26 
QuestionDataGridView Selection Pin
stancrm5-May-08 3:03
stancrm5-May-08 3:03 
AnswerRe: DataGridView Selection Pin
Csharp™5-May-08 10:46
Csharp™5-May-08 10:46 
you can set the DefaultCellStyle of a DataGridView, this will allow you to give the appearance of the Cell NOT being selected. like this ...
<br />
DataGridViewCellStyle style = new DataGridViewCellStyle();<br />
style.SelectionBackColor = Color.White;<br />
style.SelectionForeColor = Color.Black;<br />
dataGridView1.DefaultCellStyle = style;<br />

BUT, the easiest would be to use the CellStateChanged event, like this ...
<br />
private void dataGridView1_CellStateChanged(object sender, DataGridViewCellStateChangedEventArgs e)<br />
{<br />
    if (e.Cell.Selected)<br />
    {<br />
        e.Cell.Selected = false;<br />
    }<br />
}<br />
<br />

hope it helps Smile | :)


<font color="blue">Csharp</font> me = (<font color="blue">Csharp</font>)Dynamic_Sysop; <font color="#008000">// My Signature.</font><br><font color="#008000">$twins</font> = <font color="#008000">me.twins</font>(<font color="#800080">"Taylor"</font> , <font color="#800080">"Delta"</font>); <font color="#C0C0C0">// My twin daughters.</font><br>echo <font color="#008000">$twins</font>;</br></br>

QuestionHow to global access from other forms? Pin
daden2035-May-08 2:53
daden2035-May-08 2:53 
AnswerRe: How to global access from other forms? Pin
Christian Graus5-May-08 2:54
protectorChristian Graus5-May-08 2:54 
GeneralRe: How to global access from other forms? Pin
daden2035-May-08 3:16
daden2035-May-08 3:16 
Questionwhat happens if value is longer than fieldlength Pin
stephan_0075-May-08 2:45
stephan_0075-May-08 2:45 
AnswerRe: what happens if value is longer than fieldlength Pin
Christian Graus5-May-08 2:55
protectorChristian Graus5-May-08 2:55 
AnswerRe: what happens if value is longer than fieldlength Pin
Gareth H5-May-08 2:55
Gareth H5-May-08 2:55 
GeneralRe: what happens if value is longer than fieldlength Pin
stephan_0075-May-08 3:00
stephan_0075-May-08 3:00 
GeneralRe: what happens if value is longer than fieldlength [modified] Pin
stephan_0075-May-08 3:03
stephan_0075-May-08 3:03 
AnswerRe: what happens if value is longer than fieldlength Pin
SomeGuyThatIsMe5-May-08 2:57
SomeGuyThatIsMe5-May-08 2:57 
GeneralRe: what happens if value is longer than fieldlength Pin
stephan_0075-May-08 3:16
stephan_0075-May-08 3:16 
GeneralRe: what happens if value is longer than fieldlength Pin
SomeGuyThatIsMe5-May-08 3:31
SomeGuyThatIsMe5-May-08 3:31 
QuestionUsing "DictationGrammar" to dictate a URL Pin
thoraia5-May-08 2:37
thoraia5-May-08 2:37 
QuestionDynamic workflow Project Pin
Thaer Hamael5-May-08 2:00
Thaer Hamael5-May-08 2:00 
AnswerCP Members: question already asked Pin
leckey5-May-08 17:40
leckey5-May-08 17:40 
QuestionLayout takes time to rearrange after rezise, how to fix? Pin
leeoze5-May-08 1:59
leeoze5-May-08 1:59 
AnswerRe: Layout takes time to rearrange after rezise, how to fix? Pin
Anthony Mushrow5-May-08 2:13
professionalAnthony Mushrow5-May-08 2:13 
QuestionHyperlinks to access outlook items Pin
asasov5-May-08 1:49
asasov5-May-08 1:49 

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.