VB.Net 2003 - ItemDataBound
-
I am new to "The Code Project". :doh: I was attracted to this site due to an article; "Advanced DataGrid Formating with ItemDataBound". The article identified how to format ADO.Net Datagrid rows conditionally. I need to do the same from a VB.Net Datagrid. My Application provides the user a datagrid that displays equipment calibration related data. I.E. "Equip. Serial #", "Due dates" ETC... I want to conditionally change the color of rows (records) who's "Due date" columns are greater than the current date; DueDate > Today() Thus, visually identifing records which need to be prioritized. Can anyone direct me to an article, or perhaps point me in the right direction? Regards: DDscales
DDscales
-
I am new to "The Code Project". :doh: I was attracted to this site due to an article; "Advanced DataGrid Formating with ItemDataBound". The article identified how to format ADO.Net Datagrid rows conditionally. I need to do the same from a VB.Net Datagrid. My Application provides the user a datagrid that displays equipment calibration related data. I.E. "Equip. Serial #", "Due dates" ETC... I want to conditionally change the color of rows (records) who's "Due date" columns are greater than the current date; DueDate > Today() Thus, visually identifing records which need to be prioritized. Can anyone direct me to an article, or perhaps point me in the right direction? Regards: DDscales
DDscales
Hi DDscales. Try Using [c#]
this.dataGridView1.Rows[0].DefaultCellStyle
Or if you are using the a DataSet use DataBindings to set the properties with the correct datamember.SINCERELY. ANTHONY ACUÑA PREFERED PHRASE: SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
-
Hi DDscales. Try Using [c#]
this.dataGridView1.Rows[0].DefaultCellStyle
Or if you are using the a DataSet use DataBindings to set the properties with the correct datamember.SINCERELY. ANTHONY ACUÑA PREFERED PHRASE: SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
Perhaps I am just to green. I assume "this." refers to my DataGrid "DataGrid1" ? Also, I notice in your reply [c#], I am running VB 2003. Or does that matter? Anyway...I think my problem is I do not know how to set the dataGridView properties. Do I have to create a class Library? I realize this could get rather complicated. Could you refer me to an article or virtual lab that might help me to get the answers? Regards:
DDscales