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
try abc
NA
199
410.1k
Problem in adding different CellType in single column in DataGridView Control ..
Dec 18 2007 7:16 AM
Hello all, I am Using One grid with Three column and I want to add Diffrent Cell type in Same Column.. I can display properly with the error. code is as bel;ow..
dgvUserSettings.Rows.Add(5);
dgvUserSettings.Rows[0].Cells[0].Value = "User :";
dgvUserSettings.Rows[1].Cells[0].Value = "Level :";
dgvUserSettings.Rows[2].Cells[0].Value = "Authority:";
dgvUserSettings.Rows[3].Cells[0].Value = "Enable PO :";
dgvUserSettings.Rows[4].Cells[0].Value = "Unit Cost :";
dgvUserSettings.Rows[0].Cells[1] = new DataGridViewCheckBoxCell();
dgvUserSettings.Rows[1].Cells[1] = new DataGridViewComboBoxCell();
dgvUserSettings.Rows[2].Cells[1]= new DataGridViewTextBoxCell();
dgvUserSettings.Rows[3].Cells[1] = new DataGridViewCheckBoxCell();
dgvUserSettings.Rows[4].Cells[1] = new DataGridViewCheckBoxCell();
It give the foolowing error..
"system.FormatException Formateed value of the cell has a wrong value type"
If anyone knows about it.. plz help..
Reply
Answers (
0
)
adding records to .txt file... edit existing file... save edited file... Windows App
adding records StreamWriter PROBLEM