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
Offline files Synchronization
Microsoft's Network Security
Outbound mail from Small Business Server 2003
Multiple Personal.xls~RF251096.TMP files appearing in XLSTART folder
Access / SQL / VBA / filter records on form according to a date field
Forms and listboxes default value
How do I print/export all Shared Folder Permissions and NTFS Security on Server 2003
Preselect Checkboxlist Controls List Items based Based on matching DataTable Values
Printer error from Excel Documents
MDB, Library MDA, open a 2nd instance of a Form in MDB from MDA.