it seems really difficult to use C1TrueDBGrid at first but as you learn new things it looks easier day by day.... there are two ways to add checkbox column in a bound grid one to add the check box column in database or add in the dataset after getting values from database. Following code adds a checkbox column at the start of the table in dataset and then sets a checkbox column in c1TrueDBGrid1
//Code to connect to database
DbAdapter.Fill(dataSet1, tblName);
dataSet1.Tables[0].Columns.Add("check_box", typeof(bool));
dataSet1.Tables[0].Columns["check_box"].SetOrdinal(0);
c1TrueDBGrid1.DataSource = dataSet1.Tables[0];
//rest of the code for column setting
//code for checkbox column setting
C1.Win.C1TrueDBGrid.ValueItemCollection check1 = c1TrueDBGrid1.Columns["Check_box"].ValueItems.Values;
c1TrueDBGrid1.Columns["Check_box"].ValueItems.Translate = true;
c1TrueDBGrid1.Columns["Check_box"].ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
check1.Add(new C1.Win.C1TrueDBGrid.ValueItem("0", false));
check1.Add(new C1.Win.C1TrueDBGrid.ValueItem("1", true));
//CheckBox Column Presentation
c1TrueDBGrid1.Splits[0].DisplayColumns["check_box"].Width = 20;
c1TrueDBGrid1.Splits[0].DisplayColumns["check_box"].Frozen = true;
c1TrueDBGrid1.Splits[0].DisplayColumns["check_box"].Locked = false;
c1TrueDBGrid1.Columns["check_box"].Caption = "";
APLX is a very complete implementation of the APL programming language from MicroAPL. The company stopped producing it in 2016 and it has been taken over by Dyalog. While Dyalog ...