Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
AnswerRe: Paste clipboard value to remote application. [modified] Pin
Luc Pattyn14-Jan-07 13:25
sitebuilderLuc Pattyn14-Jan-07 13:25 
AnswerRe: Paste clipboard value to remote application. Pin
Luc Pattyn14-Jan-07 13:42
sitebuilderLuc Pattyn14-Jan-07 13:42 
GeneralRe: Paste clipboard value to remote application. Pin
sampath Jayasinghe14-Jan-07 17:10
sampath Jayasinghe14-Jan-07 17:10 
GeneralRe: Paste clipboard value to remote application. Pin
Luc Pattyn14-Jan-07 17:57
sitebuilderLuc Pattyn14-Jan-07 17:57 
GeneralRe: Paste clipboard value to remote application. Pin
sampath Jayasinghe15-Jan-07 16:41
sampath Jayasinghe15-Jan-07 16:41 
QuestionAutocomplete -> BindingSource -> Position change Pin
Glen Harvy13-Jan-07 14:09
Glen Harvy13-Jan-07 14:09 
QuestionSetting a default value for a datagridviewtextbox column Pin
bluewavestrider13-Jan-07 12:07
bluewavestrider13-Jan-07 12:07 
AnswerRe: Setting a default value for a datagridviewtextbox column Pin
Lisa Jorgensen13-Jan-07 15:14
Lisa Jorgensen13-Jan-07 15:14 
There's more than one way to approach this.

One way is to set the DataGridViewTextBoxColumn's DefaultValue property to the current date. This means that all rows with an unspecified value in that column will get the current date. One problem is that the date will remain the same even if the date changes while the application is still running (i.e. new rows will still get the no-longer-current date).

Another approach is to use the DataGridView's DefaultValuesNeeded event to set the current date, e.g. (if the target DataGridViewTextBoxColumn is named "DateColumn"):

private void dataGridView1_DefaultValuesNeeded(object sender, DataGridViewRowEventArgs e)
{
    e.Row.Cells["DateColumn"].Value = DateTime.Now.ToShortDateString();
}

This affects only new rows; existing rows will not be updated.

If you do both, then existing rows with an unspecified value will get the date on which the application began running and new rows will get the current date.
GeneralRe: Setting a default value for a datagridviewtextbox column Pin
bluewavestrider14-Jan-07 4:45
bluewavestrider14-Jan-07 4:45 
Questionhow to read status registers of parallel port Pin
George-Lucian13-Jan-07 11:44
George-Lucian13-Jan-07 11:44 
AnswerRe: how to read status registers of parallel port Pin
Phillip M. Hoff13-Jan-07 11:59
Phillip M. Hoff13-Jan-07 11:59 
QuestionA multithreading "best practice" question! Pin
Nader Elshehabi13-Jan-07 10:58
Nader Elshehabi13-Jan-07 10:58 
AnswerRe: A multithreading "best practice" question! Pin
Phillip M. Hoff13-Jan-07 11:38
Phillip M. Hoff13-Jan-07 11:38 
GeneralRe: A multithreading "best practice" question! Pin
Nader Elshehabi13-Jan-07 12:28
Nader Elshehabi13-Jan-07 12:28 
GeneralRe: A multithreading "best practice" question! Pin
Phillip M. Hoff13-Jan-07 14:25
Phillip M. Hoff13-Jan-07 14:25 
GeneralRe: A multithreading "best practice" question! Pin
Nader Elshehabi14-Jan-07 9:02
Nader Elshehabi14-Jan-07 9:02 
QuestionXNA requirement or Direct x 9 works fine with C#...or OpenGL Pin
Software_Specialist13-Jan-07 10:48
Software_Specialist13-Jan-07 10:48 
AnswerRe: XNA requirement or Direct x 9 works fine with C#...or OpenGL Pin
Nader Elshehabi13-Jan-07 11:12
Nader Elshehabi13-Jan-07 11:12 
GeneralRe: XNA requirement or Direct x 9 works fine with C#...or OpenGL Pin
Software_Specialist13-Jan-07 11:31
Software_Specialist13-Jan-07 11:31 
GeneralRe: XNA requirement or Direct x 9 works fine with C#...or OpenGL Pin
Nader Elshehabi13-Jan-07 12:05
Nader Elshehabi13-Jan-07 12:05 
AnswerRe: XNA requirement or Direct x 9 works fine with C#...or OpenGL Pin
Colin Angus Mackay13-Jan-07 11:39
Colin Angus Mackay13-Jan-07 11:39 
GeneralRe: XNA requirement or Direct x 9 works fine with C#...or OpenGL Pin
Software_Specialist13-Jan-07 12:07
Software_Specialist13-Jan-07 12:07 
QuestionRead Excel file and create another file met some part of first excel file [modified] Pin
teymur_khan13-Jan-07 10:05
teymur_khan13-Jan-07 10:05 
AnswerRe: Read Excel file and create another file met some part of first excel file Pin
Phillip M. Hoff13-Jan-07 11:50
Phillip M. Hoff13-Jan-07 11:50 
GeneralRe: Read Excel file and create another file met some part of first excel file Pin
teymur_khan14-Jan-07 5:14
teymur_khan14-Jan-07 5:14 

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.