Click here to Skip to main content
15,506,846 members
Home / Discussions / C#
   

C#

 
AnswerRe: genrate data is not display in report viewer Pin
Searril13-Oct-09 4:20
Searril13-Oct-09 4:20 
AnswerRe: genrate data is not display in report viewer Pin
Md. Marufuzzaman13-Oct-09 5:44
professionalMd. Marufuzzaman13-Oct-09 5:44 
QuestiondataGridView problems Pin
Steve5177113-Oct-09 3:30
Steve5177113-Oct-09 3:30 
AnswerRe: dataGridView problems Pin
Manas Bhardwaj13-Oct-09 3:40
professionalManas Bhardwaj13-Oct-09 3:40 
GeneralRe: dataGridView problems Pin
Steve5177113-Oct-09 4:22
Steve5177113-Oct-09 4:22 
AnswerRe: dataGridView problems Pin
Steve5177113-Oct-09 5:01
Steve5177113-Oct-09 5:01 
GeneralRe: dataGridView problems Pin
Luc Pattyn13-Oct-09 5:21
sitebuilderLuc Pattyn13-Oct-09 5:21 
AnswerRe: dataGridView problems Pin
Jacobb Michael13-Oct-09 6:49
Jacobb Michael13-Oct-09 6:49 
Hi dont know How it is possible to get that error,

The same code you have given works fine ,

just i tried as bellow

DataTable dt = new DataTable();
            dt.Columns.Add("1");
            dt.Columns.Add("2");
            dt.Rows.Add("100", "101");
            dt.Rows.Add("102", "103");
            dt.Rows.Add("103", "104");
            dataGridView1.DataSource = dt;


private void dataGridView1_RowLeave(object sender, DataGridViewCellEventArgs e)
        {
            for (int i = 0; i < dataGridView1.Rows[e.RowIndex].Cells.Count; i++)
            {
                dataGridView1[i, e.RowIndex].Style.BackColor = Color.Green; // works for all 3 rows
                MessageBox.Show(dataGridView1[i, e.RowIndex].Value.ToString()); // Throws exception on 3rd row
            }
        }

GeneralRe: dataGridView problems Pin
Steve5177113-Oct-09 7:33
Steve5177113-Oct-09 7:33 
QuestionOpen a POPUP consisting of Two Radio Buttons in Windows Applications Pin
Murthuja13-Oct-09 3:06
Murthuja13-Oct-09 3:06 
AnswerRe: Open a POPUP consisting of Two Radio Buttons in Windows Applications Pin
benjymous13-Oct-09 3:12
benjymous13-Oct-09 3:12 
AnswerRe: Open a POPUP consisting of Two Radio Buttons in Windows Applications Pin
Jacobb Michael13-Oct-09 6:55
Jacobb Michael13-Oct-09 6:55 
QuestionGet string name from listview selected item Pin
Aljaz11113-Oct-09 2:44
Aljaz11113-Oct-09 2:44 
AnswerRe: Get string name from listview selected item Pin
Manas Bhardwaj13-Oct-09 2:47
professionalManas Bhardwaj13-Oct-09 2:47 
AnswerRe: Get string name from listview selected item Pin
stancrm13-Oct-09 2:48
stancrm13-Oct-09 2:48 
AnswerRe: Get string name from listview selected item [modified] Pin
Md. Marufuzzaman13-Oct-09 5:12
professionalMd. Marufuzzaman13-Oct-09 5:12 
GeneralRe: Get string name from listview selected item Pin
Luc Pattyn13-Oct-09 5:23
sitebuilderLuc Pattyn13-Oct-09 5:23 
GeneralRe: Get string name from listview selected item Pin
Md. Marufuzzaman13-Oct-09 5:50
professionalMd. Marufuzzaman13-Oct-09 5:50 
AnswerRe: Get string name from listview selected item Pin
T!T@N14-Mar-10 9:45
T!T@N14-Mar-10 9:45 
Questionhow i can print from ppc (windows mobile) to usb printer ? Pin
E_Gold13-Oct-09 2:11
E_Gold13-Oct-09 2:11 
QuestionGet Control information at Mouse Position? Pin
Lyon Sun13-Oct-09 2:07
Lyon Sun13-Oct-09 2:07 
AnswerRe: Get Control information at Mouse Position? Pin
Luc Pattyn13-Oct-09 3:48
sitebuilderLuc Pattyn13-Oct-09 3:48 
GeneralRe: Get Control information at Mouse Position? Pin
Lyon Sun13-Oct-09 5:10
Lyon Sun13-Oct-09 5:10 
GeneralRe: Get Control information at Mouse Position? Pin
Luc Pattyn13-Oct-09 5:17
sitebuilderLuc Pattyn13-Oct-09 5:17 
GeneralRe: Get Control information at Mouse Position? Pin
Lyon Sun13-Oct-09 7:29
Lyon Sun13-Oct-09 7: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.