Microsoft
Software
Hardware
Network
Question : C# -- "Value==null"
How can I change the below so
"Checked" messageBox displays
since "Value==null" does not work,
since BLANK value "ID1" cells display
as {} in debug mode on attached ?
--------------------------
----------
----------
----------
-
private void designerMaintenanceBinding
NavigatorS
aveItem_Cl
ick(object
sender, EventArgs e)
{
for (int i = 0; i < designerMaintenanceDataGri
dView.Rows
.Count; i++)
{
if (designerMaintenanceDataGr
idView.Row
s[i].Cells
["ID1"].Va
lue==null)
{
MessageBox.Show("Checked")
;
}
else
{
MessageBox.Show("UnChecked
");
}
}
}
Answer : C# -- "Value==null"
or ..Equals(System.DBNull.Val
ue)
Random Solutions
How to type a character string using a shortcut key in VBA.
"An unexpected error has occurred."
SQL awkward behaviour (urgent)
MS Access change regular number to month in query
datediff -- 2 dates are returning the same datefiff value (i.e. 0)
AutoFill field when a selection is Selected
RDS Web Access 2008 R2 - Multiple Logons
Access 2007 SQL statement needed to merge two tables
How to create simple FUNCTION SQL and DO FUNCTION CALL
Add new row to datagrid for insertion vb.net