Click here to Skip to main content
16,020,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
nassimnastaran24-Nov-11 5:09
nassimnastaran24-Nov-11 5:09 
QuestionTabPage Text Pin
Danzy8323-Nov-11 9:42
Danzy8323-Nov-11 9:42 
AnswerRe: TabPage Text Pin
Luc Pattyn23-Nov-11 10:09
sitebuilderLuc Pattyn23-Nov-11 10:09 
AnswerRe: TabPage Text Pin
BillWoodruff23-Nov-11 21:18
professionalBillWoodruff23-Nov-11 21:18 
QuestionCan we get A Name for the Row of DataGridView ... Pin
nassimnastaran23-Nov-11 8:48
nassimnastaran23-Nov-11 8:48 
AnswerRe: Can we get A Name for the Row of DataGridView ... Pin
PIEBALDconsult23-Nov-11 9:04
mvePIEBALDconsult23-Nov-11 9:04 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
nassimnastaran23-Nov-11 9:36
nassimnastaran23-Nov-11 9:36 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
PIEBALDconsult23-Nov-11 10:29
mvePIEBALDconsult23-Nov-11 10:29 
Then explain more clearly what you want.

      System.Data.DataTable dt = new System.Data.DataTable() ;
      for ( int col = 0 ; col < 10 ; col++ )
      {
        dt.Columns.Add ( new System.Data.DataColumn ( col.ToString() ) ) ;
      }
      for ( int row = 0 ; row < 10 ; row++ )
      {
        System.Data.DataRow dr = dt.NewRow() ;
        for ( int col = 0 ; col < dt.Columns.Count ; col++ )
        {
          dr [ col ] = row * col ;
        }
        dt.Rows.Add ( dr ) ;
      }
      this.dataGridView1.DataSource = dt ;
      for ( int row = 0 ; row < dt.Rows.Count ; row++ )
      {
        this.dataGridView1.Rows [ row ].HeaderCell.Value = row.ToString() ;
      }


This gives me a DataGridView showing a multiplication table with the row headers showing the row number.
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
nassimnastaran24-Nov-11 5:28
nassimnastaran24-Nov-11 5:28 
AnswerRe: Can we get A Name for the Row of DataGridView ... Pin
Luc Pattyn23-Nov-11 10:10
sitebuilderLuc Pattyn23-Nov-11 10:10 
Questionc# Convert a large bitmap into jpeg format Pin
mgulde23-Nov-11 8:04
mgulde23-Nov-11 8:04 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
darkDercane23-Nov-11 9:00
professionaldarkDercane23-Nov-11 9:00 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
harold aptroot23-Nov-11 9:25
harold aptroot23-Nov-11 9:25 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
Luc Pattyn23-Nov-11 10:17
sitebuilderLuc Pattyn23-Nov-11 10:17 
GeneralRe: c# Convert a large bitmap into jpeg format Pin
mgulde23-Nov-11 22:31
mgulde23-Nov-11 22:31 
GeneralTry/Catch Opinions Pin
mjackson1123-Nov-11 7:08
mjackson1123-Nov-11 7:08 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:16
mvePIEBALDconsult23-Nov-11 7:16 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:28
mentorNot Active23-Nov-11 7:28 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:37
mvePIEBALDconsult23-Nov-11 7:37 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:47
mentorNot Active23-Nov-11 7:47 
AnswerRe: Try/Catch Opinions Pin
Eddy Vluggen23-Nov-11 7:45
professionalEddy Vluggen23-Nov-11 7:45 
GeneralRe: Try/Catch Opinions Pin
SledgeHammer0123-Nov-11 7:58
SledgeHammer0123-Nov-11 7:58 
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon23-Nov-11 8:37
mvePete O'Hanlon23-Nov-11 8:37 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 9:09
mvePIEBALDconsult23-Nov-11 9:09 
GeneralRe: Try/Catch Opinions Pin
Pete O'Hanlon23-Nov-11 9:29
mvePete O'Hanlon23-Nov-11 9: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.