Adding checkbox to a table and starting it as true RRS feed

  • Pergunta

  • Good afternoon!
    Could you help me with this little problem?

    DtControl DataTable = new DataTable ();

    dtControl.Columns.Add (new DataColumn ("Status", typeof (Boolean)));

    I would like the name column Status commence with all checkboxes = true;
    segunda-feira, 9 de setembro de 2013 18:51

Todas as Respostas

  • Hello.

    I don't know if it is what you want, but I know how to add checkbox columns on a datagridview. You could do it:

    Dim dg1 As New DataGridView
    Dim oColumn As New DataGridViewCheckBoxColumn
    For i As Integer = 0 To dg1.RowCount - 1
        dg1.Item(0, i).Value = True
    dg1.Dock = DockStyle.Fill

    I hope it'll help you.



    segunda-feira, 9 de setembro de 2013 19:47
  • I can add the columns as bool, or checkbox
    I like that the initial value of the checkbox to be true, or IsChecked.
    segunda-feira, 9 de setembro de 2013 19:53