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
multiple JOINs ON equal AND NOT equal
Average of numbers - count only records with complete data
Excel automation: unload XLL so Excel can quit
SQL - CASE Statement help needed
TAPI in VB.NET
Open report from a double-click event on a form
Excel VBA -- Using .xlT File to Send E-Mail with .xlS File Attachment (NEW QUESTION)
Merry Christmas to you all.
Certificate error while accessing companies website.
multi-user MS Access Application