1. the first column of the DataGrid uses the template column. The template column contains a checkbox control, which corresponds to the flagbool column bound to the data source in the checked attribute (the default value is false; otherwise, a conversion error is prompted ), you can select and display multiple pages.
2. Add oncheckedchanged = "oncheck" on the page"
1 Public void oncheck (Object sender, system. eventargs E)
2 {
3 // custom selection event -- add oncheckedchanged = "oncheck" on the page"
4 checkbox chkselect = (checkbox) sender;
5 datagriditem DGI = (datagriditem) chkselect. Parent. parent;
6 int keyid = int. parse (this. DG. datakeys [DGI. itemindex]. tostring ());
7 datarow [] srow = cdecisionsearch. meet_decisionlist.select ("meetingdecisionid =" + keyid );
8
9 If (srow. length> 0)
10 {
11 if (chkselect. Checked)
12 {
13 srow [0] ["flagbool"] = true;
14}
15 else
16 {
17 srow [0] ["flagbool"] = false;
18}
19}
20}
21