samedi 16 avril 2022

How Can Add CheckBox Column in DataGridView?

I Have An API And That API Give Me A Jason Of Some Lists And I Show That In My DataGridView I Want To Set A Check Box Column To My DataGridView For Selecting A Row Of A DataGridView Easier.

That's My Answer From API And Set To DataGridView

var WorkListFromApis = serializer.Deserialize<List<Sysmexxp300WorkListFromApi>>(json.ToString());
                    dgv_tests.DataSource = WorkListFromApis;

That's My Sysmexxp300WorkListFromApi Class

 public class Sysmexxp300WorkListFromApi  //Model For WorkList OF Sysmex Xp300
    {
        public Int64 Id_ReceptionDetail { get; set; }
        public string PatientName { get; set; }
        public string MasterPriorityName { get; set; }
        public string DetailPriorityName { get; set; }
        public int Code_Patient { get; set; }
        public string CustomCode { get; set; }
        public string WBC { get; set; }
        public string RBC { get; set; }
        public string HGB { get; set; }
        public string HCT { get; set; }

    }

How Can I Add Check Box To Each Row ??




Aucun commentaire:

Enregistrer un commentaire