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
Attachments to GroupWise
No permissions for Database, but have .mdw file. How can I edit it t gain acces to Db?
Visual Studio 2008 C# XNA - Creating a timer sequence for updated objects
Problem using WITH XMLNAMESPACES with nested queries
How to use CreateFile and WriteFile functions from "kernel32" in VB.NET ?
Trigger Access AND SQL events at the same time?
deleting in batches,using rowcount
foxpro sql insert data with comma in text
Cannot open user default database SQL Server error 4064
Web.Config Error - Sections must only appear once per config file. See the help topic <location> for exceptions.