Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: Subscribing to System Events Pin
bovus6-Jan-10 5:39
bovus6-Jan-10 5:39 
Questioncomponent for datagridview Pin
SajjadZare6-Jan-10 5:14
SajjadZare6-Jan-10 5:14 
AnswerRe: component for datagridview Pin
dan!sh 6-Jan-10 5:34
professional dan!sh 6-Jan-10 5:34 
GeneralRe: component for datagridview Pin
SajjadZare6-Jan-10 5:38
SajjadZare6-Jan-10 5:38 
GeneralRe: component for datagridview Pin
dan!sh 6-Jan-10 5:46
professional dan!sh 6-Jan-10 5:46 
QuestionHow do I access row and cell information in a bound DataGridView? Pin
arnold_w6-Jan-10 5:11
arnold_w6-Jan-10 5:11 
AnswerRe: How do I access row and cell information in a bound DataGridView? Pin
dan!sh 6-Jan-10 5:45
professional dan!sh 6-Jan-10 5:45 
GeneralRe: How do I access row and cell information in a bound DataGridView? Pin
arnold_w6-Jan-10 21:27
arnold_w6-Jan-10 21:27 
d@nish wrote:
arnold_w wrote:
but the print out says there are zero rows in the table. Why is that?


There has to be some problem with your printing code. Try debug that or post it here.


The code is posted here and the printing code is the second row from the end.


d@nish wrote:
arnold_w wrote:
I want to obtain other information about rows and cells (such as their locations), how do I do that?


Try using GetCellDisplayRectangle method.


If I add the following code at the very end:
try
{
  Rectangle cellRectangle = dataGridView1.GetCellDisplayRectangle(0, 0, true);
  Console.WriteLine("The cell is located at " + cellRectangle.X + ", " + cellRectangle.Y + ".");
}
catch (ArgumentOutOfRangeException e)
{
  Console.WriteLine("ArgumentOutOfRangeException. Additional info: " + e.Message);
}


I get an ArgumentOutOfRangeException saying the parameter is outside the valid range. What I missing here?
GeneralRe: How do I access row and cell information in a bound DataGridView? Pin
dan!sh 7-Jan-10 4:05
professional dan!sh 7-Jan-10 4:05 
GeneralRe: How do I access row and cell information in a bound DataGridView? Pin
arnold_w7-Jan-10 4:24
arnold_w7-Jan-10 4:24 
GeneralRe: How do I access row and cell information in a bound DataGridView? Pin
arnold_w7-Jan-10 4:30
arnold_w7-Jan-10 4:30 
GeneralRe: How do I access row and cell information in a bound DataGridView? Pin
dan!sh 7-Jan-10 6:27
professional dan!sh 7-Jan-10 6:27 
GeneralRe: How do I access row and cell information in a bound DataGridView? Pin
arnold_w7-Jan-10 22:05
arnold_w7-Jan-10 22:05 
QuestionSingleton Class and Static Class Pin
dataminers6-Jan-10 4:01
dataminers6-Jan-10 4:01 
AnswerRe: Singleton Class and Static Class Pin
#realJSOP6-Jan-10 4:07
mve#realJSOP6-Jan-10 4:07 
AnswerRe: Singleton Class and Static Class Pin
harold aptroot6-Jan-10 4:07
harold aptroot6-Jan-10 4:07 
AnswerRe: Singleton Class and Static Class Pin
Abhinav S6-Jan-10 5:52
Abhinav S6-Jan-10 5:52 
AnswerRe: Singleton Class and Static Class Pin
carlecomm6-Jan-10 19:13
carlecomm6-Jan-10 19:13 
QuestionGenerating partitions Pin
varsha parmar6-Jan-10 3:39
varsha parmar6-Jan-10 3:39 
AnswerRe: Generating partitions Pin
Luc Pattyn6-Jan-10 3:46
sitebuilderLuc Pattyn6-Jan-10 3:46 
GeneralRe: Generating partitions Pin
varsha parmar6-Jan-10 3:56
varsha parmar6-Jan-10 3:56 
GeneralRe: Generating partitions Pin
#realJSOP6-Jan-10 4:00
mve#realJSOP6-Jan-10 4:00 
GeneralRe: Generating partitions Pin
Luc Pattyn6-Jan-10 4:05
sitebuilderLuc Pattyn6-Jan-10 4:05 
GeneralRe: Generating partitions Pin
OriginalGriff6-Jan-10 5:43
mveOriginalGriff6-Jan-10 5:43 
GeneralRe: Generating partitions Pin
Luc Pattyn6-Jan-10 5:52
sitebuilderLuc Pattyn6-Jan-10 5:52 

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.