TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Minh
NA
47
134.4k
Datagridviewcell value in c#
Jun 6 2010 10:40 AM
Hi friends ,
I have a datgridaview named _gridview for data input . But when the value of cell[x,y] is set to null i can not write : _gridview.rows[x].cell[y].value.tostring(); then system give me an error : not set to an instance of any object .
So , what should i do for that because user can make the cell null at anytime they want . Can I use my code like below and if yes , what override event should i put my code in :
if(_gridview.currentcell.tostring()==sysem.dbNull.value.tostring())
_gridview.currentcell.value="";
THANKS .
Reply
Answers (
2
)
Updating combobox if the ToString() result of an item changes
How to get the Font Family Name from Selected Font.