Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
QuestionDateTime Problem Pin
Thaer Hamael12-Jan-10 2:24
Thaer Hamael12-Jan-10 2:24 
AnswerRe: DateTime Problem Pin
OriginalGriff12-Jan-10 2:33
mveOriginalGriff12-Jan-10 2:33 
AnswerRe: DateTime Problem Pin
Luc Pattyn12-Jan-10 5:35
sitebuilderLuc Pattyn12-Jan-10 5:35 
AnswerRe: DateTime Problem Pin
Dan Mos12-Jan-10 7:46
Dan Mos12-Jan-10 7:46 
QuestionSerialization questions. Pin
David Muir12-Jan-10 1:50
David Muir12-Jan-10 1:50 
AnswerRe: Serialization questions. Pin
dojohansen12-Jan-10 7:01
dojohansen12-Jan-10 7:01 
QuestionHow can I subscribe to "DataGridView.CellDisplayRectangleUpdatedAfterDataGridViewScroll"-events? Pin
arnold_w12-Jan-10 1:44
arnold_w12-Jan-10 1:44 
AnswerRe: How can I subscribe to "DataGridView.CellDisplayRectangleUpdatedAfterDataGridViewScroll"-events? Pin
Saksida Bojan12-Jan-10 6:59
Saksida Bojan12-Jan-10 6:59 
I would put a boolean value to true, and handle event: RowPostPaint. This event occours after DataGridViewRow finish painting. And there it would check for that boolean property and execute.

private void dataGridView1_Scroll(Object sender, ScrollEventArgs e)
{
   scrolled = true // Global or static boolean property
}

private voud dataGridView1_RowPostPaint(Object sender, DataGridViewRowPostPaintEventArgs e)
{
   if (scrolled)
   {
      Rectangle r1 = dataGridView1.GetCellDisplayRectangle(0, -1, true);
      Console.WriteLine("New cell position after scrolling: " + r1.X + ", " + r1.Y);
      scrolled = false:
   }
}

GeneralRe: How can I subscribe to "DataGridView.CellDisplayRectangleUpdatedAfterDataGridViewScroll"-events? Pin
arnold_w12-Jan-10 21:40
arnold_w12-Jan-10 21:40 
Questionstring resizing Pin
Emmet_Brown12-Jan-10 1:31
Emmet_Brown12-Jan-10 1:31 
AnswerRe: string resizing Pin
harold aptroot12-Jan-10 1:34
harold aptroot12-Jan-10 1:34 
GeneralRe: string resizing Pin
Emmet_Brown12-Jan-10 1:38
Emmet_Brown12-Jan-10 1:38 
GeneralRe: string resizing Pin
Luc Pattyn12-Jan-10 1:53
sitebuilderLuc Pattyn12-Jan-10 1:53 
AnswerRe: string resizing Pin
Rick Shaub12-Jan-10 8:03
Rick Shaub12-Jan-10 8:03 
AnswerRe: string resizing Pin
carlecomm12-Jan-10 16:45
carlecomm12-Jan-10 16:45 
QuestionDeployment Project Pin
CT0013812-Jan-10 1:20
CT0013812-Jan-10 1:20 
Questiondelay in process Pin
sachees12312-Jan-10 1:11
sachees12312-Jan-10 1:11 
AnswerRe: delay in process Pin
Luc Pattyn12-Jan-10 1:56
sitebuilderLuc Pattyn12-Jan-10 1:56 
Questionwhich one will be faster? Pin
Joe Rozario12-Jan-10 0:29
Joe Rozario12-Jan-10 0:29 
AnswerRe: which one will be faster? PinPopular
Paulo Zemek12-Jan-10 0:37
Paulo Zemek12-Jan-10 0:37 
AnswerRe: which one will be faster? Pin
harold aptroot12-Jan-10 0:57
harold aptroot12-Jan-10 0:57 
AnswerRe: which one will be faster? Pin
Dan Mos12-Jan-10 7:52
Dan Mos12-Jan-10 7:52 
Questionmy application on windows taskbar Pin
Jassim Rahma11-Jan-10 23:12
Jassim Rahma11-Jan-10 23:12 
AnswerRe: my application on windows taskbar Pin
Eddy Vluggen12-Jan-10 0:31
professionalEddy Vluggen12-Jan-10 0:31 
AnswerRe: my application on windows taskbar Pin
Dave Kreskowiak12-Jan-10 4:17
mveDave Kreskowiak12-Jan-10 4:17 

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.