I'm trying to manually draw cells in a DataGridView. Specifically I'd like to draw a row of CheckBoxes. Normally you can add a DataGridViewCheckBoxColumn, but as far as I'm aware, there isn't a DataGridViewCheckBoxRow. (I can't just create lots of DGVCheckBoxColumns because I'd like different cell types in different rows).
I've overridden the DGV's OnCellPainting() method. I've created a DGVCheckBoxCell:
protected override void OnCellPainting(DataGridViewCellPaintingEventArgs e)
{
DataGridViewCheckBoxCell cbcell = new DataGridViewCheckBoxCell();
}
I'm not sure what to do next.
More info:
I'm ultimately trying to transpose a datagridview. So I might have a CheckBoxColumn, a ComboBoxColumn, a TextBoxColumn, and any other type of column, then turn them into rows. I don't think I can make DGVRows, so I think I'm going to have to deal with indiviual cells.
Thanks for all the answers so far...