[EDIT]
I'd like to use image at Datagridview using DataTable.
RadioButton is just a simple question format for this post.
Let me clear myself for this.
How can I add this "image" or that "image" on the datagridview using the binding style ?
(Because,
I thought, it is faster then the normal ways. I made 500 lines of images and texts -both of them are 16*16 and short words. If I redraw it, it took me 20 seconds. Twenty !!!! This is a nonsense. I have tried "Double buffer" workarounds, but nothing was better.)
I made codes.
It is just a start point for RadioButton on DataGridView.
So far so good.
I made five images on it.
Like this.
dataGridView1.RowCount = 5;
dataGridView1.Rows[0].Cells[0].Value = Properties.Resources.WhiteBall;
dataGridView1.Rows[1].Cells[0].Value = Properties.Resources.BlueBall;
dataGridView1.Rows[2].Cells[0].Value = Properties.Resources.WhiteBall;
dataGridView1.Rows[3].Cells[0].Value = Properties.Resources.WhiteBall;
dataGridView1.Rows[4].Cells[0].Value = Properties.Resources.WhiteBall;
Question.
How can I make the same result using "DataTable binding style" ?
I had only error "Needs correct DataType at Rows".
My codes for 2nd try is;
DataTable myTable = new DataTable();
DataColumn myCoulmn = new DataColumn();
myCoulmn.DataType = Type.GetType("System.Drawing.Bitmap");
myTable.Columns.Add(myCoulmn);
DataRow myRow = myTable.NewRow();
myRow[0] = Properties.Resources.WhiteBall;
myRow[1] = Properties.Resources.BlueBall;
myRow[2] = Properties.Resources.WhiteBall;
myRow[3] = Properties.Resources.WhiteBall;
myRow[4] = Properties.Resources.WhiteBall;
myTable.Rows.Add(myRow);
dataGridView1.DataSource = myTable;
Help please.