Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
Questiondynamic variables inside While loop Pin
Member 278914211-Mar-08 8:03
Member 278914211-Mar-08 8:03 
GeneralRe: dynamic variables inside While loop Pin
Christian Graus11-Mar-08 8:16
protectorChristian Graus11-Mar-08 8:16 
GeneralRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 8:29
Member 278914211-Mar-08 8:29 
QuestionRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 9:01
Member 278914211-Mar-08 9:01 
GeneralRe: dynamic variables inside While loop Pin
Christian Graus11-Mar-08 9:10
protectorChristian Graus11-Mar-08 9:10 
GeneralRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 9:12
Member 278914211-Mar-08 9:12 
AnswerRe: dynamic variables inside While loop Pin
buchstaben11-Mar-08 8:18
buchstaben11-Mar-08 8:18 
GeneralIndicate column sorting in DataGridView column Pin
AndrusM11-Mar-08 7:58
AndrusM11-Mar-08 7:58 
I need to indicate that WinForms DataGridView column in sorted.
If column width is too small, sort glyph is not displayed.
Is it possible to force sorth glyph to display in narrow columns also or any other idea how to indicate that column is sorted?

I tried also to underline column caption in mouseclick event but this fails also.

I tried

foreach (DataGridViewColumn dataGridViewColumn in grid.Columns) {<br />
  DataGridViewCellStyle dgvcellStyle = new DataGridViewCellStyle();<br />
  System.Drawing.Font font = new System.Drawing.Font( <br />
dataGridViewColumn.HeaderCell.Style.Font,<br />
            System.Drawing.FontStyle.Underline );<br />
  dgvcellStyle.Font = font;<br />
  dataGridViewColumn.HeaderCell.Style = dgvcellStyle;<br />
  }


But got exception probably since debugger shows that

dataGridViewColumn.HeaderCell.Style.Font

is null.

dataGridViewColumn.HeaderCell.Style is not null.

How to fix ?

Andrus

QuestionHelp on LINQ Pin
belzer11-Mar-08 7:50
belzer11-Mar-08 7:50 
General[Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:03
professionalScott Dorman11-Mar-08 8:03 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
belzer11-Mar-08 8:08
belzer11-Mar-08 8:08 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:24
professionalScott Dorman11-Mar-08 8:24 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 8:50
professionalScott Dorman11-Mar-08 8:50 
GeneralRe: Help on LINQ Pin
belzer11-Mar-08 9:17
belzer11-Mar-08 9:17 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 9:40
professionalScott Dorman11-Mar-08 9:40 
Questionconvert byte[] to short[] Pin
eyalbi00711-Mar-08 7:44
eyalbi00711-Mar-08 7:44 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 7:54
m@u11-Mar-08 7:54 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 8:01
eyalbi00711-Mar-08 8:01 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 8:08
m@u11-Mar-08 8:08 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 21:48
eyalbi00711-Mar-08 21:48 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 22:52
m@u11-Mar-08 22:52 
GeneralC# ncurses Pin
marwooj11-Mar-08 7:36
marwooj11-Mar-08 7:36 
Questionbutton click event for more than 1 button Pin
steve_rm11-Mar-08 7:32
steve_rm11-Mar-08 7:32 
GeneralRe: button click event for more than 1 button Pin
m@u11-Mar-08 7:38
m@u11-Mar-08 7:38 
Generalwebbrowser and layout changing of current page Pin
eswes11-Mar-08 5:29
eswes11-Mar-08 5:29 

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.