Click here to Skip to main content
15,880,967 members
Home / Discussions / C#
   

C#

 
QuestionCodeproject forum ... ? Pin
devboycpp13-Oct-09 5:18
devboycpp13-Oct-09 5:18 
AnswerRe: Codeproject forum ... ? Pin
Md. Marufuzzaman13-Oct-09 5:53
professionalMd. Marufuzzaman13-Oct-09 5:53 
GeneralRe: Codeproject forum ... ? Pin
Kevin Marois13-Oct-09 6:42
professionalKevin Marois13-Oct-09 6:42 
AnswerRe: Codeproject forum ... ? Pin
Abhijit Jana13-Oct-09 7:18
professionalAbhijit Jana13-Oct-09 7:18 
Questiongenrate data is not display in report viewer Pin
vivek_s_IT13-Oct-09 2:41
vivek_s_IT13-Oct-09 2:41 
AnswerRe: genrate data is not display in report viewer Pin
Searril13-Oct-09 3:20
Searril13-Oct-09 3:20 
AnswerRe: genrate data is not display in report viewer Pin
Md. Marufuzzaman13-Oct-09 4:44
professionalMd. Marufuzzaman13-Oct-09 4:44 
QuestiondataGridView problems Pin
Steve5177113-Oct-09 2:30
Steve5177113-Oct-09 2:30 
Hello, I am having a small problem here and just cant figure it out.. I have an unbound datagridview object with 3 columns and am trying to simply pass the values added in the datagrid rows to a variable, messagebox, anything. The first two columns of the new row pass fine. But the last throws a NullReferenceException. (there is data typed in the cell). All cell background colors change BUT when I try to get the data entered in the cells, the last column throws the exception. Thank you!!!!

private void dataGridView1_RowLeave(object sender, DataGridViewCellEventArgs e)
{
DataClasses1DataContext dc = new DataClasses1DataContext();
Medication newMeds = new Medication();

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

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.