1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Documentation for LCL (Lazarus Component Library) and LazUtils (Lazarus
Utilities) are published under the Creative Commons Attribution-ShareAlike 4.0
International public license.
https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/docs/cc-by-sa-4-0.txt
Copyright (c) 1997-2025, by the Lazarus Development Team.
-->
<fpdoc-descriptions>
<package name="lcl">
<!-- DBGrids -->
<module name="DBGrids">
<short>
Implements a data-aware grid to display and operate on information in a
database.
</short>
<descr>
<p>
<file>dbgrids.pas</file> contains classes and types needed to implement a
database-aware grid control. The following components are added to the
<b>Data Controls</b> tab in the Lazarus IDE Component Palette:
</p>
<ul>
<li>TDBGrid</li>
</ul>
<p>
The unit also includes the <var>TComponentDatalink</var> component, which is
used as the data link for TCustomDBGrid. It was taken from an article by
Joanna Carter: <b><i>"The Ultimate Datalink?"</i></b>, published in Delphi
Magazine Issue #30 February 1998.
</p>
</descr>
<!-- used units -->
<element name="Classes"/>
<element name="SysUtils"/>
<element name="Math"/>
<element name="FileUtil"/>
<element name="DB"/>
<element name="LazUTF8"/>
<element name="LazLoggerBase"/>
<element name="LCLStrConsts"/>
<element name="LCLIntf"/>
<element name="LCLType"/>
<element name="LMessages"/>
<element name="LResources"/>
<element name="Controls"/>
<element name="StdCtrls"/>
<element name="Graphics"/>
<element name="Grids"/>
<element name="Dialogs"/>
<element name="Themes"/>
<element name="Variants"/>
<element name="Clipbrd"/>
<element name="ImgList"/>
<element name="Laz2_XMLCfg"/>
<element name="DEFINDICATORCOLWIDTH">
<short>
Default width for the row indicator column in a grid control.
</short>
<descr>
<p>
Used to set the width for the row indicator column (when enabled in the grid
options). The value may be scaled for the display density (PPI) used for the
Font in the grid control. Used when a TCustomDBGrid control updates it layout
and appearance after a change to its Options property.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Options"/>
</seealso>
</element>
<element name="EInvalidGridOperation">
<short>
Exception raised for an invalid grid operation.
</short>
<descr>
<p>
<var>EInvalidGridOperation</var> is an Exception class raised when an invalid
grid operations is performed.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TDBGridOption">
<short>
Enumerated type containing options available for use in a database grid
control.
</short>
<descr>
<p>
<var>TDBGridOption</var> is an enumerated type containing options available
for a database grid control. Each enumeration value indicates if the
associated feature or behavior is enabled in a database grid control.
</p>
<p>
Values from the enumeration are stored in the <var>TDBGridOptions</var> set
type, and are used in the <var>TDBGrid.Options</var> property.
</p>
</descr>
<seealso>
<link id="#lcl.dbgrids.TDBGridOptions">TDBGridOptions</link>
<link id="#lcl.dbgrids.TDBGrid.Options">TDBGrid.Options</link>
</seealso>
</element>
<element name="TDBGridOption.dgEditing">
<short>
Indicates cells in the grid can be edited.
</short>
</element>
<element name="TDBGridOption.dgTitles">
<short>
Indicates titles are displayed in fixed row headers for columns on the grid.
</short>
</element>
<element name="TDBGridOption.dgIndicator">
<short>
Enables drawing a row indicator in the fixed header for the currently selected
row on the grid.
</short>
</element>
<element name="TDBGridOption.dgColumnResize">
<short>
Indicates columns in the grid can be resized.
</short>
</element>
<element name="TDBGridOption.dgColumnMove">
<short>
Indicates the order of columns in the grid can be changed.
</short>
</element>
<element name="TDBGridOption.dgColLines">
<short>
Indicates vertical lines are drawn between columns in the grid.
</short>
</element>
<element name="TDBGridOption.dgRowLines">
<short>
Indicates horizontal lines are drawn between rows in the grid.
</short>
</element>
<element name="TDBGridOption.dgTabs">
<short>
Indicates the Tab key can be used to navigate between cells in the grid.
</short>
</element>
<element name="TDBGridOption.dgAlwaysShowEditor">
<short>
Indicates an edit control is always displayed for the current cell in the
grid. When omitted, editing must be initiated by mouse click, or by pressing
the <b>Enter</b> or <b>F2</b> keys.
</short>
</element>
<element name="TDBGridOption.dgRowSelect">
<short>
Indicates the entire row is highlighted when column(s) are selected.
</short>
</element>
<element name="TDBGridOption.dgAlwaysShowSelection">
<short>
Indicates the current selection is displayed even when the control loses
focus.
</short>
</element>
<element name="TDBGridOption.dgConfirmDelete">
<short>
Indicates a confirmation dialog is displayed when deleting a record in the
grid.
</short>
</element>
<element name="TDBGridOption.dgCancelOnExit">
<short>
Indicates an active editing operation is cancelled when the control loses
focus.
</short>
</element>
<element name="TDBGridOption.dgMultiselect">
<short>
Allows more than one cell in a row, or more than one row to be selected on
the grid.
</short>
</element>
<element name="TDBGridOption.dgHeaderHotTracking">
<short>
Indicates column headers are highlighted when the column has mouse focus
(hovered).
</short>
</element>
<element name="TDBGridOption.dgHeaderPushedLook">
<short>
Indicates a column header can be drawn with a "button down" or pushed
appearance when clicked.
</short>
</element>
<element name="TDBGridOption.dgPersistentMultiSelect">
<short>
Indicates multiple selections are retained (when enabled) when the control
loses focus. When omitted, multi-selections are discarded when the exiting the
control.
</short>
</element>
<element name="TDBGridOption.dgAutoSizeColumns">
<short>
Indicates columns are automatically resized to fit their content.
</short>
</element>
<element name="TDBGridOption.dgAnyButtonCanSelect">
<short>
Indicates that any mouse button can change the selection in the grid.
</short>
</element>
<element name="TDBGridOption.dgDisableDelete">
<short>
Indicates that deleting records with <b>Ctrl+Delete</b> is disabled.
</short>
</element>
<element name="TDBGridOption.dgDisableInsert">
<short>
Indicates whether inserting (and appending) records is disabled.
</short>
</element>
<element name="TDBGridOption.dgCellHints">
<short>
Indicates if displaying a hint for an individual cell is enabled.
</short>
</element>
<element name="TDBGridOption.dgTruncCellHints">
<short>
Indicates if cell hints are truncated when they are too long.
</short>
</element>
<element name="TDBGridOption.dgCellEllipsis">
<short>
Indicates if an Ellipsis character is added to the end of cells longer than
the display area for the cell.
</short>
</element>
<element name="TDBGridOption.dgRowHighlight">
<short>
Indicates if the current row in the grid is highlighted instead of the
current cell.
</short>
</element>
<element name="TDBGridOption.dgThumbTracking">
<short>
Indicates if the current selection is changed when the mouse thumb wheel is
scrolled.
</short>
</element>
<element name="TDBGridOption.dgDblClickAutoSize">
<short>
Indicates if double clicking on borders or headers for a column causes it to
be automatically resized to its contents.
</short>
</element>
<element name="TDBGridOption.dgDisplayMemoText">
<short>
Causes the content in a memo field to be displayed instead of the '(Memo)'
string literal. Applies to fields using the ftMemo data type.
</short>
</element>
<element name="TDbGridOptions">
<short>
Stores values from the <var>TDbGridOption</var> enumeration.
</short>
<descr>
<var>TDbGridOptions</var> is a set type used to store values from the
<var>TDbGridOption</var> enumeration. <var>TDbGridOptions</var> is the type
used for the <var>Options</var> property in <var>TDBGrid</var>.
</descr>
<seealso>
<link id="TDBGridOption">TDBGridOption</link>
<link id="TDBGrid.Options">TDBGrid.Options</link>
</seealso>
</element>
<element name="TDbGridExtraOption">
<short>
Enumerated type that specifies extra options available in a database grid.
</short>
<descr>
<p>
<var>TDbGridExtraOption</var> is an enumerated type that specifies extra
options available in a database grid. Values from TDbGridExtraOption are
stored in the <var>TDbGridExtraOptions</var> set type, and used in the
<var>OptionsExtra</var> property in <var>TDBGrid</var>.
</p>
</descr>
<seealso>
<link id="#lcl.dbgrids.TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<element name="TDbGridExtraOption.dgeAutoColumns">
<short>
Indicates if Fields in the dataset are automatically added as columns in the
database grid.
</short>
</element>
<element name="TDbGridExtraOption.dgeCheckboxColumn">
<short>
Indicates that check box controls are used to edit Boolean Fields in the grid
dataset.
</short>
</element>
<element name="TDbGridExtraOptions">
<short>
<var>TDbGridExtraOptions</var> is a set of values from the
<var>TDbGridExtraOption</var> enumeration.
</short>
<descr>
<p>
<var>TDbGridExtraOptions</var> is a set type used to store zero (<b>0</b>) or
more values from the <var>TDbGridExtraOption</var> enumeration.
TDbGridExtraOptions is the type used to implement the <var>OptionsExtra</var>
property in <var>TCustomDBGrid</var> and descendent classes.
</p>
</descr>
<seealso>
<link id="TCustomDbGrid.OptionsExtra"/>
<link id="TDbGrid.OptionsExtra"/>
<link id="TDbGridExtraOption"/>
</seealso>
</element>
<element name="TDbGridStatusItem">
<short>
Enumerated type with values for status messages used in a database grid.
</short>
<descr>
<p>
<var>TDbGridStatusItem</var> is an enumerated type with values for status
messages used in a database grid. Values from TDbGridStatusItem are stored in
<var>TDbGridStatus</var>, and used in the <var>GridStatus</var> property in
<var>TCustomDBGrid</var>.
</p>
</descr>
<seealso>
<link id="TDbGridStatus"/>
<link id="TCustomDBGrid.GridStatus"/>
</seealso>
</element>
<element name="TDbGridStatusItem.gsUpdatingData">
<short>
Indicates the grid is updating after a change to its data.
</short>
</element>
<element name="TDbGridStatusItem.gsAddingAutoColumns">
<short>
Indicates automatic columns are being added for the grid control.
</short>
</element>
<element name="TDbGridStatusItem.gsRemovingAutoColumns">
<short>
Indicates automatic columns are being removed from the grid control.
</short>
</element>
<element name="TDbGridStatusItem.gsAutoSized">
<short>
Indicates automatically sized columns are currently in use in the grid
control.
</short>
</element>
<element name="TDbGridStatusItem.gsStartEditing">
<short>
Indicates the data link for a grid control is updating the value in its
Editing property.
</short>
</element>
<element name="TDbGridStatusItem.gsLoadingGrid">
<short>
Indicates the grid control is loading its settings from a file or stream.
</short>
</element>
<element name="TDbGridStatus">
<short>
Set type used to store <var>TDbGridStatusItem</var> enumeration values.
</short>
<descr>
<p>
<var>TDbGridStatus</var> is a set type used to store
<var>TDbGridStatusItem</var> enumeration values. Values added to
TDbGridStatus indicate that a feature or behavior has been enabled in a
TDBGrid control.
</p>
<p>
TDbGridStatus is used to implement the <var>GridStatus</var> property in
<var>TCustomDBGrid</var> and descendent classes.
</p>
</descr>
<seealso>
<link id="TDbGridStatusItem"/>
<link id="TCustomDBGrid.GridStatus"/>
</seealso>
</element>
<element name="TDatasetScrolledEvent">
<short>
Specifies an event handler signalled after scrolling a dataset.
</short>
<descr>
<p>
<var>TDatasetScrolledEvent</var> specifies an event handler signalled after
scrolling a dataset. TDatasetScrolledEvent can be used to perform actions
required when the position in the DataSet has changed.
</p>
<p>
DataSet is the TDataset instance for the event notification.
</p>
<p>
Distance indicates both the number of rows and the direction for the event
notification, for example:
</p>
<dl>
<dt><b>Value</b></dt>
<dd><b>Meaning</b></dd>
<dt><var><0</var></dt>
<dd>Scroll toward the beginning of the DataSet</dd>
<dt><var>0</var></dt>
<dd>Current row in the DataSet has been refreshed</dd>
<dt><var>>0</var></dt>
<dd>Scroll toward the end of the DataSet </dd>
</dl>
<p>
TDatasetScrolledEvent is the type used for the OnDataSetScrolled property in
TComponentDataLink.
</p>
<p>
See the TCustomDBGrid.OnDataSetScrolled procedure for an example
implementation of TDatasetScrolledEvent.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDatasetScrolledEvent.Dataset">
<short>Dataset for the event.</short>
</element>
<element name="TDatasetScrolledEvent.Distance">
<short>Number of rows and direction for the event.</short>
</element>
<element name="TFocusControlEvent">
<short>
Event handler signalled to coordinate Field selection and control focus.
</short>
<descr>
<p>
<var>TFocusControlEvent</var> specifies an event handler signalled to
coordinate Field selection and control focus.
</p>
</descr>
<seealso>
<link id="TComponentDataLink.OnFocusControl"/>
</seealso>
</element>
<element name="TFocusControlEvent.aField">
<short>Field reference for the focus event.</short>
</element>
<element name="TDBGridClickEvent">
<short>
Specifies an event handler signalled when a grid column in is clicked.
</short>
<descr>
<p>
<var>TDBGridClickEvent</var> specifies an event handler signalled when a
column in the database grid is clicked
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDBGridClickEvent.Column">
<short>Column for the event.</short>
</element>
<element name="TMovedEvent">
<short>
Specifies an event handler signalled when the display order of rows or
columns is changed.
</short>
<descr>
<p>
<var>TMovedEvent</var> specifies an event handler signalled when the display
order of rows or columns is changed. TMovedEvent is the type used for the
OnColumnMoved and OnRowMoved properties in TDBGrid.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OnColumnMoved"/>
<link id="TCustomDBGrid.OnRowMoved"/>
</seealso>
</element>
<element name="TMovedEvent.Sender">
<short>Grid control for the event.</short>
</element>
<element name="TMovedEvent.FromIndex">
<short>Previous ordinal position for the event.</short>
</element>
<element name="TMovedEvent.ToIndex">
<short>New ordinal position for the event.</short>
</element>
<element name="TDrawColumnCellEvent">
<short>
Specifies an event handler for drawing a cell in a grid control.
</short>
<descr>
<p>
<var>TDrawColumnCellEvent</var> specifies an event handler used to draw a
cell in a column for a grid control. TDrawColumnCellEvent is the type used
for the OnDrawColumnCell property in TDBGrid, and signalled from its DrawCell
method.
</p>
</descr>
<seealso>
<link id ="#lcl.DBGrids.TCustomDBGrid.OnDrawColumnCell"/>
<link id ="#lcl.DBGrids.TCustomDBGrid.DrawCell"/>
</seealso>
</element>
<element name="TDrawColumnCellEvent.Sender">
<short>Grid control for the event.</short>
</element>
<element name="TDrawColumnCellEvent.Rect">
<short>Canvas rectangle where the cell is drawn.</short>
</element>
<element name="TDrawColumnCellEvent.DataCol">
<short>Position of the Field used to get data for the event.</short>
</element>
<element name="TDrawColumnCellEvent.Column">
<short>Column definition for the event`</short>
</element>
<element name="TDrawColumnCellEvent.State">
<short>Drawing state for the event.</short>
</element>
<element name="TGetDbEditMaskEvent">
<short>
Specifies an event handler used to get the Edit Mask for a cell in a grid.
</short>
<descr>
<p>
<var>TGetDbEditMaskEvent</var> specifies an event handler used to get the
Edit Mask for a cell in a database grid control. TGetDbEditMaskEvent can be
used to provide an edit mask for the specified Field. TGetDbEditMaskEvent is
the type used for the OnFieldEditMask property in TDBGrid.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OnFieldEditMask">TCustomDBGrid.OnFieldEditMask</link>
</seealso>
</element>
<element name="TGetDbEditMaskEvent.Sender">
<short>Grid control for the event.</short>
</element>
<element name="TGetDbEditMaskEvent.Field">
<short>Field for the event.</short>
</element>
<element name="TGetDbEditMaskEvent.Value">
<short>Default value for the edit mask.</short>
</element>
<element name="TDbGridSelEditorEvent">
<short>
Specifies an event handler used to select a cell editor in a database grid.
</short>
<descr>
<p>
<var>TDbGridSelEditorEvent</var> specifies an event handler used to
select an editor for a cell in a database grid.
</p>
</descr>
<seealso>
<link id="#lcl.dbgrids.TDBGrid.OnSelectEditor">TDBGrid.OnSelectEditor</link>
<link id="#lcl.dbgrids.TCustomDBGrid.SelectEditor">TCustomDBGrid.SelectEditor</link>
</seealso>
</element>
<element name="TDbGridSelEditorEvent.Sender">
<short>Control signalling the event.</short>
</element>
<element name="TDbGridSelEditorEvent.Column">
<short>Column for the control.</short>
</element>
<element name="TDbGridSelEditorEvent.Editor">
<short>Editor for the specified column.</short>
</element>
<element name="TPrepareDbGridCanvasEvent">
<short>
Specifies an event handler which prepares the canvas for drawing a database
grid.
</short>
<descr>
<p>
<var>TPrepareDbGridCanvasEvent</var> specifies an event handler used to
prepare the canvas which draws the content in a database grid.
TPrepareDbGridCanvasEvent allows an application to override or enhance the
drawing behavior of cells in a database grid.
</p>
<p>
<var>TPrepareDbGridCanvasEvent</var> is used to implement the
<var>OnPrepareCanvas</var> event handler in <var>TDBGrid</var>.
</p>
</descr>
<seealso>
<link id="#lcl.dbgrids.TDBGrid.OnPrepareCanvas">TDBGrid.OnPrepareCanvas</link>
</seealso>
</element>
<element name="TPrepareDbGridCanvasEvent.Sender">
<short>Control for the event notification.</short>
</element>
<element name="TPrepareDbGridCanvasEvent.DataCol">
<short>Ordinal position for the column.</short>
</element>
<element name="TPrepareDbGridCanvasEvent.Column">
<short>TColumn definition for the specified column number.</short>
</element>
<element name="TPrepareDbGridCanvasEvent.AState">
<short>Drawing state for the selection.</short>
</element>
<element name="TDbGridCheckBoxBitmapEvent">
<short>
Specifies an event handler signalled to get the user-specified Bitmap for a
check box column in a grid control.
</short>
<descr>
<p>
<var>TDbGridCheckBoxBitmapEvent</var> is the type used implement the
TCustomDBGrid.OnCheckboxBitmap property.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OnUserCheckboxBitmap"/>
<link id="#lcl.grids.TCustomGrid.GetImageForCheckBox">TCustomGrid.GetImageForCheckBox</link>
</seealso>
</element>
<element name="TDbGridCheckBoxBitmapEvent.Sender">
<short>Object for the event notification.</short>
</element>
<element name="TDbGridCheckBoxBitmapEvent.CheckedState">
<short>Checked state for the bitmap returned from the event handler.</short>
</element>
<element name="TDbGridCheckBoxBitmapEvent.ABitmap">
<short>Bitmap instance for the specified checked state.</short>
</element>
<element name="TDbGridCheckboxStateEvent">
<short>
Specifies an event handler signalled to get the user-specified state for a
check box column on the grid control.
</short>
<descr>
<p>
<var>TDbGridCheckboxStateEvent</var> is the type used to implement the
OnUserCheckboxState property in TCustomDBGrid.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OnUserCheckboxState"/>
</seealso>
</element>
<element name="TDbGridCheckboxStateEvent.Sender">
<short>Object (grid control) for the event notification.</short>
</element>
<element name="TDbGridCheckboxStateEvent.Column">
<short>
TColumn definition for the data represented in the check box image.
</short>
</element>
<element name="TDbGridCheckboxStateEvent.AState">
<short>Checked state for the check box.</short>
</element>
<element name="TDbGridCellHintEvent">
<short>
Specifies an event handler signalled to get the hint text for a cell in a
grid control.
</short>
<descr>
<p>
<var>TDbGridCellHintEvent</var> is the type used to implement the
OnGetCellHint property in TCustomDBGrid.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OnGetCellHint"/>
</seealso>
</element>
<element name="TDbGridCellHintEvent.Sender">
<short>Object (grid control) for the event notification.</short>
</element>
<element name="TDbGridCellHintEvent.Column">
<short>TColumn definition for the cell.</short>
</element>
<element name="TDbGridCellHintEvent.AText">
<short>Returns the cell hint text derived in the handler.</short>
</element>
<element name="TBookmarkedRecordEnumeratorOptions">
<short>
Enumeration with option values for the bookmarked record enumerator.
</short>
<descr>
<p>
<var>TBookmarkedRecordEnumeratorOptions</var> is a set type with option
values that control the actions performed in
<var>TBookmarkedRecordEnumerator</var>. TBookmarkedRecordEnumeratorOptions is
the type used to implement the <var>TBookmarkedRecordEnumerator.Options</var>
property.
</p>
</descr>
<seealso>
<link id="TBookmarkedRecordEnumerator">TBookmarkedRecordEnumerator</link>
</seealso>
</element>
<element name="TBookmarkedRecordEnumeratorOptions.breDisableDataset">
<short>Disables controls attached to the dataset.</short>
</element>
<element name="TBookmarkedRecordEnumeratorOptions.breStopOnInvalidBookmark">
<short>Stops enumerating when an invalid bookmark is encountered.</short>
</element>
<element name="TBookmarkedRecordEnumeratorOptions.breRestoreCurrent">
<short>Restores the current bookmark when exiting the enumerator.</short>
</element>
<element name="TBookmarkedRecordEnumerator">
<short>Defines a bookmarked record enumeration class.</short>
<descr>
<p>
<var>TBookmarkedRecordEnumerator</var> is a Class which defines a bookmarked
record enumerator for use in <var>TBookmarklist</var>.
</p>
</descr>
<seealso>
<link id="#lcl.dbgrids.TBookmarkList">TBookmarkList</link>
</seealso>
</element>
<element name="TBookmarkedRecordEnumerator.fBookmarkList"/>
<element name="TBookmarkedRecordEnumerator.fBookmarkIndex"/>
<element name="TBookmarkedRecordEnumerator.fCurrent"/>
<element name="TBookmarkedRecordEnumerator.fBook"/>
<element name="TBookmarkedRecordEnumerator.fDataset"/>
<element name="TBookmarkedRecordEnumerator.fOptions"/>
<element name="TBookmarkedRecordEnumerator.Create">
<short>
Constructor for the class instance.
</short>
<descr>
<p>
<var>Create</var> is the constructor for the class instance. Create calls the
inherited constructor, and stores the arguments to the method in its
BookmarkList, Dataset, and Options properties.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkedRecordEnumerator.Create.bookList">
<short>Bookmark list for the enumerator.</short>
</element>
<element name="TBookmarkedRecordEnumerator.Create.aGrid">
<short>Grid control for the enumerator.</short>
</element>
<element name="TBookmarkedRecordEnumerator.Create.anOptions">
<short>Options for the enumerator.</short>
</element>
<element name="TBookmarkedRecordEnumerator.Destroy">
<short>
Destructor for the class instance.
</short>
<descr>
<p>
<var>Destroy</var> is the destructor for the class instance. Destroy uses
values in the Options property to perform actions needed before the class
instance is freed, including:
</p>
<ul>
<li>Restore the dataset to the position in Bookmark</li>
<li>Re-enable controls attached to the dataset if disabled</li>
</ul>
<p>
Destroy calls the inherited destructor before exit.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkedRecordEnumerator.MoveNext">
<short>
Moves to the next bookmark in the list.
</short>
<descr>
<p>
<var>MoveNext</var> is a Boolean function used to move the enumerator to the
next item in the bookmark list. Move next increments the value in
BookmarkIndex, and examines the Options property to see if any actions are
required, such as: setting the value of the Current Bookmark before
navigation, or disabling controls attached to the dataset.
</p>
<p>
MoveNext updates the current bookmark and checks the dataset to see if the
bookmark is still valid. The return value is <b>False</b> if the record for
the bookmark no longer exists in the dataset and Options indicates the
enumerator should halt for an invalid bookmark. <b>False</b> is also returned
when the value in BookmarkIndex exceeds the number of items in the
BookmarkList.
</p>
<p>
The return value is <b>True</b> when the action has been performed
successfully.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkedRecordEnumerator.MoveNext.Result">
<short><b>True</b> when the action has been performed successfully.</short>
</element>
<element name="TBookmarkedRecordEnumerator.GetEnumerator">
<short>
Returns the current class instance (Self).
</short>
<descr>
<p>
<var>GetEnumerator</var> is a TBookmarkedRecordEnumerator function used to
the current class instance (Self).
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkedRecordEnumerator.GetEnumerator.Result">
<short>The current class instance.</short>
</element>
<element name="TBookmarkedRecordEnumerator.Current">
<short>
Current bookmark for the enumerator.
</short>
<descr>
<p>
<var>Current</var> is a read-only <var>TBookmark</var> property which returns
the current bookmark for the enumerator. The value in Current in updated when
the MoveNext method is called.
</p>
</descr>
<seealso>
<link id="TBookmarkedRecordEnumerator.MoveNext"/>
<link id="#fcl.db.TBookmark">TBookmark</link>
</seealso>
</element>
<element name="TBookmarkedRecordEnumerator.Options">
<short>
Controls the actions performed when Bookmarks are visited.
</short>
<descr>
<p>
<var>Options</var> is a TBookmarkedRecordEnumeratorOptions property which
controls the actions performed when Bookmarks in the enumerator are visited.
Values are included in the set type to enable the corresponding feature in
the enumerator.
</p>
<p>
See TBookmarkedRecordEnumeratorOptions for more information about option
values and their meanings.
</p>
<p>
The initial values in the set are passed as parameters to the Create method.
Values stored in Options are examined in methods including Destroy and
MoveNext.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TBookmarkList">
<short>
Implements a list of Bookmarks in a database grid.
</short>
<descr>
<p>
<var>TBookmarkList</var> is a class used to implement a list of Bookmarks in
a database grid. TBookmarkList is the type used for the
<var>SelectedRows</var> property in <var>TCustomDBGrid</var> and descendent
classes.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.SelectedRows"/>
<link id="TDBGrid.SelectedRows"/>
</seealso>
</element>
<element name="TBookmarkList.FList"/>
<element name="TBookmarkList.FGrid"/>
<element name="TBookmarkList.fDataset"/>
<element name="TBookmarkList.fCanDoBinarySearch"/>
<element name="TBookmarkList.GetCount">
<short>
Gets the value for the Count property.
</short>
<descr>
<var>GetCount</var> is an Integer function used to get the value for the
Count property. Use the Items property to access TBookmark instances stored
in the list.
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkList.GetCount.Result">
<short>Number of bookmarks in the list.</short>
</element>
<element name="TBookmarkList.GetCurrentRowSelected">
<short>
Gets the value in the for the CurrentRowSelected property.
</short>
<descr>
<p>
<var>GetCurrentRowSelected</var> is a <var>Boolean</var> function used to get
the value for the <var>CurrentRowSelected</var> property.
GetCurrentRowSelected calls the CheckActive method to ensure that the Dataset
for the list is properly configured. See CheckActive for more information.
</p>
<p>
The return value is <b>True</b> when a TBookmark instance for the current row
already exists in the list.
</p>
</descr>
<seealso>
<link id="TBookmarkList.CurrentRowSelected"/>
</seealso>
</element>
<element name="TBookmarkList.GetCurrentRowSelected.Result">
<short>
<b>True</b> when a bookmark for the current row already exists in the list.
</short>
</element>
<element name="TBookmarkList.GetItem">
<short>
Gets the value for the bookmark stored at the specified position in the list.
</short>
<descr>
<p>
<var>GetItem</var> is a TBookmark function that implements the read access
specifier for the Items property. GetItems returns the bookmark stored at the
specified ordinal position in the list. AIndex is the ordinal position to
retrieve in the range <var>0 .. Count - 1</var>. Use the Items property to
access the bookmarks stored in the list.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkList.GetItem.Result">
<short>The bookmark at the specified position.</short>
</element>
<element name="TBookmarkList.GetItem.AIndex">
<short>Ordinal position in the list for the bookmark.</short>
</element>
<element name="TBookmarkList.SetCurrentRowSelected">
<short>
Sets the value in the CurrentRowSelected property.
</short>
<descr>
<p>
<var>SetCurrentRowSelected</var> is a procedure which provides write access
for the CurrentRowSelected property. SetCurrentRowSelected gets a bookmark
for the current row, and calls Find to determine if the bookmark already
exists in the list. When AValue contains <b>False</b>, an existing bookmark
is freed and removed from the bookmark list. A Bookmark not in the list is
created and added when AValue is <b>True</b>.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkList.SetCurrentRowSelected.AValue">
<short>
<b>True</b> to select the current row. <b>False</b> to de-selected the
current row.
</short>
</element>
<element name="TBookmarkList.CheckActive">
<short>
Ensures that the dataset for the bookmark list is properly configured and
active.
</short>
<descr>
<p>
CheckActive is a procedure used to ensure that the bookmark list is active
and properly configured. CheckActive examines the DataLink for the Grid to
determine if it is active. An EInvalidGridOperation exception is raised if
the dataset is not already active.
</p>
<p>
CheckActive compares the dataset in the bookmark list to the dataset in
the associated Grid control. If they are the same Dataset, no additional
processing is performed in the method. Otherwise, the Dataset for the
bookmark list is set to the Dataset from the associated Grid control.
</p>
<p>
CheckActive sets the value for the internal flag which indicates if a binary
search can be used to locate bookmarks. Hint: Binary search is not used for
TSQLQuery and TBufDataset descendants.
</p>
</descr>
<errors>
<dl>
<dt>EInvalidGridOperation</dt>
<dd>
Raised when the DataLink in the Grid control has an inactive Dataset; the
exception message is 'Dataset Inactive'.
</dd>
</dl>
</errors>
<seealso></seealso>
</element>
<element name="TBookmarkList.Create">
<short>
<var>Create</var> is the constructor for TBookmarkList.
</short>
<descr>
<p>
<var>Create</var> is the constructor for the TBookmarkList class instance.
Create calls the inherited constructor. Create stores the AGrid argument
internally to keep an association to the grid for the Bookmarks. Finally,
Create initializes the internal list used to store Bookmarks added to the
class instance.
</p>
</descr>
<seealso>
<link id="#rtl.system.TObject.Create">TObject.Create</link>
</seealso>
</element>
<element name="TBookmarkList.Create.AGrid">
<short>Grid control that owns the bookmark list.</short>
</element>
<element name="TBookmarkList.Destroy">
<short>
<var>Destroy</var> is the destructor for <var>TBookmarkList</var>.
</short>
<descr>
<p>
<var>Destroy</var> is an overridden destructor for the
<var>TBookmarkList</var> class instance. Destroy ensures that
<var>TBookmark</var> items are removed from the list and freed before the
list is freed. Destroy calls the inherited destructor.
</p>
</descr>
<seealso>
<link id="TBookmark" >TBookmark</link>
</seealso>
</element>
<element name="TBookmarkList.Clear">
<short>
<var>Clear</var> removes all Items in the bookmark list.
</short>
<descr>
<p>
<var>Clear</var> is a procedure used to remove all of the Items stored in the
list. Clear calls the TDataset.FreeBookmark method for each of the TBookmark
instances in Items. The length of the Bookmark is set to 0 to decrease the
reference count for the memory allocation.
</p>
<p>
Clear uses the Invalidate method in the associated Grid control and causes it
to be redrawn.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkList.Delete">
<short>
Deletes rows in the Dataset represented by bookmarks in the list.
</short>
<descr>
<p>
<var>Delete</var> is a procedure used to delete rows in the Dataset
represented by bookmarks in the list. Delete processes the Items in the list
in reverse order. Each bookmark is located in the Dataset and the
TDataset.Delete method is called to remove the data from the dataset. The
Dataset.FreeBookmark method is called to free the Bookmark, and it is removed
from the Items in the list.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkList.Find">
<short>
<var>Find</var> locates the specified Bookmark and its position in the
bookmark list.
</short>
<descr>
<p>
<var>Find</var> is a <var>Boolean</var> function used to locate the bookmark
specified in <var>Item</var> in the Items for the bookmark list. No actions
are performed in the method, and the return value is <b>False</b>, when a
<var>TBookmark</var> instance has not been assigned to Item.
</p>
<p>
For datasets where the bookmark contains an index value, a binary search is
used to locate the bookmark in Items. For other datasets, like TSQLQuery and
TBufDataset, each bookmark in Items is visited to compare the values.
</p>
<p>
Find calls the <var>TDataset.CompareBookmarks</var> method to compare the
value in Item to the bookmarks in Items. <var>AIndex</var> is set to the
position in Items where the bookmark was located. The return value is
<b>True</b> when the specified bookmark is located in the bookmark list.
</p>
</descr>
<seealso>
<link id="TBookmarkList.Items"/>
<link id="TBookmark"/>
<link id="#fcl.db.TDataset.CompareBookmarks">TDataset.CompareBookmarks</link>
</seealso>
</element>
<element name="TBookmarkList.Find.Result">
<short><b>True</b> when the bookmark is located in the list.</short>
</element>
<element name="TBookmarkList.Find.Item">
<short>Bookmark to locate.</short>
</element>
<element name="TBookmarkList.Find.AIndex">
<short>Position in the list for the bookmark.</short>
</element>
<element name="TBookmarkList.IndexOf">
<short>
<var>IndexOf</var> returns the ordinal position for the specified Bookmark in
the list.
</short>
<descr>
<p>
<var>IndexOf</var> is an Integer function used to get the ordinal position in
the list for the specified Bookmark. The return value contains the position
in the list where the TBookmark instance was located. IndexOf calls Find to
locate the bookmark and to capture the return value for the method. The
return value is in the range <var>0..Count-1</var> when the bookmark exists
in the list or <var>-1</var> when the bookmark is not found.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkList.IndexOf.Result">
<short>Position in the list for the bookmark.</short>
</element>
<element name="TBookmarkList.IndexOf.Item">
<short>Bookmark to find in the list.</short>
</element>
<element name="TBookmarkList.Refresh">
<short>
Searches for and removes invalid Bookmarks in the list.
</short>
<descr>
<p>
<var>Refresh</var> searches for and removes invalid Bookmarks in the list.
The return value is <b>True</b> if an invalid TBookmark instance was found
and removed in the method; it also indicates that the Invalidate method in
the associated Grid control was called prior to exiting from the method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TBookmarkList.Refresh.Result">
<short>
<b>True</b> when the bookmark list was updated and the grid was refreshed.
</short>
</element>
<element name="TBookmarkList.GetEnumerator">
<short>
Gets an enumerator for the bookmark list.
</short>
<descr>
<p>
<var>GetEnumerator</var> is a TBookmarkedRecordEnumerator function used to
get an enumerator for bookmarked records in the list. GetEnumerator creates
an instance of TBookmarkedRecordEnumerator with the specified arguments, and
uses the instance as the return value for the method.
</p>
</descr>
<seeslo>
<link id="TBookmarkedRecordEnumerator">TBookmarkedRecordEnumerator</link>
</seeslo>
</element>
<element name="TBookmarkList.GetEnumerator.Result">
<short>The bookmark list enumerator.</short>
</element>
<element name="TBookmarkList.GetEnumerator.opt">
<short>Options to use in the bookmark list enumerator.</short>
</element>
<element name="TBookmarkList.Count">
<short>
Indicates the number of Bookmarks in the list.
</short>
<descr>
<p>
<var>Count</var> is a read-only Integer property that indicates the number of
Bookmarks stored in the list. GetCount is the read access specifier for the
property value.
</p>
</descr>
<seealso/>
</element>
<element name="TBookmarkList.CurrentRowSelected">
<short>
Indicates if the current row in the Dataset is selected.
</short>
<descr>
<p>
<var>CurrentRowSelected</var> is a Boolean property which indicates if the
current row in the Dataset is selected.
</p>
<p>
GetCurrentRowSelected is the read access specifier for the property value.
GetCurrentRowSelected checks to see if the Bookmark for the current row
exists in BookmarkList.
</p>
<p>
SetCurrentRowSelected is the write access specifier for the property value.
SetCurrentRowSelected tries to locate a Bookmark for the current row in the
Dataset, and adds or removes the Bookmark based on the AValue argument. The
Grid control is redrawn after changing the selection state for the row.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TBookmarkList.Items">
<short>
Provides indexed access to Bookmarks in the list.
</short>
<descr>
<p>
<var>Items</var> is a read-only <var>TBookmark</var> property that provides
indexed access to Bookmarks in the list. Bookmarks can be accessed by their
ordinal position in the list (in the range <var>0..Count-1</var>).
</p>
<p>
GetItem is the read access specifier for the Items property, and retrieves
the TBookmark stored at the specified position in the list.
</p>
<p>
Items is the default property in TBookmarkList.
</p>
<p>
Use CurrentSelectedRow, Clear, Delete, and Refresh to maintain bookmarks
stored in the list.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TBookmarkList.Items.AIndex">
<short>Ordinal position for the bookmark to retrieve from the list.</short>
</element>
<element name="TComponentDataLink">
<short>
Maintains an association between a component and a dataset.
</short>
<descr>
<p>
<var>TComponentDataLink</var> is a <var>TDatalink</var> descendant that
maintains an association between a component and its linked dataset.
TComponentDataLink coordinates the actions of the component and the dataset,
and allows the component to respond to data events. TComponentDataLink
defines event handlers which can be used to forward dataset events to the
component implementation.
</p>
<p>
TComponentDataLink is the type used to implement the
<var>TCustomDBGrid.DataLink</var> property.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DataLink"/>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.FDataset"/>
<element name="TComponentDataLink.FDatasetName"/>
<element name="TComponentDataLink.FModified"/>
<element name="TComponentDataLink.FOnDatasetChanged"/>
<element name="TComponentDataLink.FOnDataseClose"/>
<element name="TComponentDataLink.FOnDataseOpen"/>
<element name="TComponentDataLink.FOnDataseScrolled"/>
<element name="TComponentDataLink.FOnFocusControl"/>
<element name="TComponentDataLink.FOnEditingChanged"/>
<element name="TComponentDataLink.FOnInvalidDataset"/>
<element name="TComponentDataLink.FOnInvalidDataSource"/>
<element name="TComponentDataLink.FOnLayoutChanged"/>
<element name="TComponentDataLink.FOnNewdataset"/>
<element name="TComponentDataLink.FOnRecordChanged"/>
<element name="TComponentDataLink.FOnUpdateData"/>
<element name="TComponentDataLink.GetDatasetName">
<short>
Gets the value for the DatasetName property.
</short>
<descr>
<p>
<var>GetDatasetName</var> is a String function that provides the value for
the DataSetName property. GetDatasetName returns the value in the Name
property for the DataSet.
</p>
<p>
Use DatasetName to read or write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.GetDatasetName.Result">
<short>Name for the linked dataset.</short>
</element>
<element name="TComponentDataLink.GetFields">
<short>
Gets the Field at the specified position.
</short>
<descr>
<p>
<var>GetFields</var> is a <var>TField</var> function that implements read
access for the Fields property. GetFields returns the TField instance at the
specified position in the Fields for the DataSet. The return value is
<b>Nil</b> if Index is not in the range <var>0..FieldCount-1</var>.
</p>
<p>
Use Fields to read values in the indexed property.
</p>
</descr>
<seealso>
<link id="TComponentDataLink.Fields"/>
<link id="#fcl.db.TDataLink.DataSet">TDataLink.DataSet</link>
</seealso>
</element>
<element name="TComponentDataLink.GetFields.Result">
<short>Field stored at the specified position.</short>
</element>
<element name="TComponentDataLink.GetFields.Index">
<short>Position to get from the Fields in the dataset.</short>
</element>
<element name="TComponentDataLink.SetDatasetName">
<short>
Sets the name for the dataset.
</short>
<descr>
<p>
<var>SetDatasetName</var> is a procedure used to store the specified value in
the DatasetName property. SetDatasetName is the write access specifier for
the DatasetName property. The value in AValue is stored in the member
variable for the class instance. It does not change the value stored the
linked TDataset.
</p>
<p>
Use DatasetName to read or write the value for the property.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.DataSet">TDataLink.DataSet</link>
</seealso>
</element>
<element name="TComponentDataLink.SetDatasetName.AValue">
<short>Name to use for the dataset.</short>
</element>
<element name="TComponentDataLink.RecordChanged">
<short>
Signals the <var>OnRecordChanged</var> event handler when assigned.
</short>
<descr>
<p>
<var>RecordChanged</var> is an overridden procedure used to signal the
OnRecordChanged event handler when the specified Field is changed.
RecordChanged calls the event handler when it has been assigned in the class
instance. No action is performed when OnRecordChanged has not been assigned.
</p>
</descr>
<seealso>
<link id="TComponentDataLink.OnRecordChanged"/>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.RecordChanged.Field">
<short>Modified Field for the event notification.</short>
</element>
<element name="TComponentDataLink.DatasetChanged">
<short>
Signals the <var>OnDatasetChanged</var> event handler when assigned.
</short>
<descr>
<p>
<var>DatasetChanged</var> is a procedure used to signal the OnDatasetChanged
event handler when the dataset has been changed. DatasetChanged calls the
event handler when it has been assigned in the class instance. No action is
performed when OnDatasetChanged has not been assigned.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink">TDataLink</link>
<link id="TComponentDataLink.OnDatasetChanged">TComponentDataLink.OnDatasetChanged</link>
</seealso>
</element>
<element name="TComponentDataLink.ActiveChanged">
<short>
Signals an event handler when the Active property is changed.
</short>
<descr>
<p>
<var>ActiveChanged</var> is a procedure used to call event handlers when the
value in Active is changed.
</p>
<p>
When Active contains <b>True</b>, the Dataset for the class is read and
compared to the value in the DatasetName property. When it differs from the
stored value the change is for a new dataset, and the OnNewDataset event
handler is signalled. If DatasetName is the same as the stored value, the
OnDataseOpen event handler is signalled.
</p>
<p>
When Active contains <b>False</b>, the Datasource and Dataset are checked to
ensure that the contain valid class instances. If Datasource is unassigned,
the OnInvalidDataSource event handler is signalled. If Dataset is unassigned,
the Dataset is being freed, and the OnInvalidDataSet event handler is
signalled. If Dataset is assigned, the dataset has been closed and the
OnDataSetClose event handler is signalled.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.LayoutChanged">
<short>
Signals the OnLayoutChanged event handler when assigned.
</short>
<descr>
<p>
<var>LayoutChanged</var> is a procedure used to signal the OnLayoutChanged
event handler when assigned in the class instance.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.LayoutChanged"/>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.DatasetScrolled">
<short>
Signals the OnDataSetScrolled event handler when assigned.
</short>
<descr>
<p>
<var>DatasetScrolled</var> is a procedure used to signal the
OnDataSetScrolled event handler when it has been assigned in the class
instance. DatasetScrolled is used in data sources or controls which change
the active record for the linked Dataset. These classes can implement and
assign a handler routine to perform actions specific to the control.
</p>
<p>
TCustomDBGrid provides a default implementation for the OnDataSetScrolled
event handler which performs the following control-specific actions:
</p>
<ul>
<li>
Updates scroll bar information (when needed).
</li>
<li>
Resets the EditorMode for the control.
</li>
<li>
Selects an Editor when the Active record has not been changed, and invalidates
the control where the data link is used.
</li>
<li>
Updates the active record and invalidates the grid row when the active record
has been changed.
</li>
<li>Restores EditorMode to the value on entry.</li>
</ul>
</descr>
<seealso>
<link id="TComponentDataLink.OnDatasetScrolled"/>
<link id="#fcl.db.TDataLink.ActiveRecord">TDataLink.ActiveRecord</link>
</seealso>
</element>
<element name="TComponentDataLink.DatasetScrolled.Distance">
<short>
Number of records for the event notification.
</short>
</element>
<element name="TComponentDataLink.FocusControl">
<short>
Signals the OnFocusControl event handler when assigned.
</short>
<descr>
<p>
<var>FocusControl</var> is a procedure used to signal the OnFocusControl
event handler when assigned in the class instance.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.FocusControl.Field">
<short>Field receiving focus in the event notification.</short>
</element>
<element name="TComponentDataLink.CheckBrowseMode" link="#fcl.db.TDataLink.CheckBrowseMode">
<short>
Calls the inherited method.
</short>
<descr>
<p>
<var>CheckBrowseMode</var> is a procedure used to call the inherited method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.EditingChanged">
<short>
Signals the OnEditingChanged event handler when assigned.
</short>
<descr>
<p>
<var>EditingChanged</var> is a procedure used to signal the OnEditingChanged
event handler when assigned in the class instance.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.UpdateData">
<short>
Signals the OnUpdateData event handler when assigned.
</short>
<descr>
<p>
<var>UpdateData</var> is a procedure used to signal the OnUpdateData event
handler when assigned in the class instance.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.MoveBy">
<short>
Moves the position in the dataset by the specified number of rows.
</short>
<descr>
<p>
<var>MoveBy</var> is an Integer function used to move the current position in
the dataset by the specified number of rows. MoveBy calls the inherited
method.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink">TDataLink</link>
</seealso>
</element>
<element name="TComponentDataLink.MoveBy.Result">
<short>Actual number of rows moved in the method.</short>
</element>
<element name="TComponentDataLink.MoveBy.Distance">
<short>Number of rows to move in the dataset.</short>
</element>
<element name="TComponentDataLink.Modified">
<short>
Indicates if the component or the linked dataset has been changed.
</short>
<descr>
<p>
<var>Modified</var> is a Boolean property that indicates if the component or
the linked dataset has been changed.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnRecordChanged">
<short>
<var>OnRecordChanged</var> - event handler for a change in the current record.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnDatasetChanged">
<short>
<var>OnDataseChanged</var> - event handler for a change in the attached
dataset.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnNewdataset">
<short>
<var>OnNewdataset</var> - event handler for formation of a link to a new
dataset.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnDatasetOpen">
<short>
<var>OnDataseOpen</var> - event handler when the dataset is open.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnInvalidDataset">
<short>
<var>OnInvalidDataset</var> - event handler when the dataset is invalid.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnInvalidDataSource">
<short>
<var>OnInvalidDataSource</var> - event handler when the data source is
invalid.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnFocusControl">
<short>Event handler signalled when the grid control receives focus.</short>
<descr>
<p>
<var>OnFocusControl</var> is a <var>TFocusControlEvent</var> property that
implements the event handler signalled when the grid control receives focus.
</p>
<p>
OnFocusControl is signalled (when assigned) from the <var>FocusControl</var>
method.
</p>
</descr>
<seealso>
<link id="TFocusControlEvent">TFocusControlEvent</link>
</seealso>
</element>
<element name="TComponentDataLink.OnLayoutChanged">
<short>
<var>OnLayoutChanged</var> - event handler when the layout of the dataset has
changed.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnDatasetClose">
<short>
<var>OnDataseClose</var> - event handler when the dataset is closed.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnDatasetScrolled">
<short>
<var>OnDataseScrolled</var> - event handler when the dataset is scrolled.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnEditingChanged">
<short>
Event handler signalled when the value for the Editing property has been
changed.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.OnUpdateData">
<short>
Event handler signalled to perform actions for pending changes to the linked
dataset.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TComponentDataLink.DatasetName">
<short>
Contains the name for the linked dataset.
</short>
<descr>
<p>
<var>DatasetName</var> is a <var>String</var> property with the name for the
linked dataset in the component. The property value is retrieved from the
Name property in DataSet (when assigned). Otherwise, the member value is used.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataSet">TDataSet</link>
<link id="#rtl.classes.TComponent.Name">TComponent.Name</link>
</seealso>
</element>
<element name="TComponentDataLink.Fields">
<short>
Provides indexed access to fields in the linked dataset by their ordinal
position.
</short>
<descr>
<p>
<var>Fields</var>s a read-only indexed <var>TField</var> property which
provides access to fields in Dataset by their ordinal position. The return
value contains the TField instance in DataSet at the ordinal position in
Index. The property value is <b>Nil</b> if Index is not valid for the number
of fields in DataSet.
</p>
<p>
Use DataSet.FieldCount to get the number of fields defined in the linked
dataset.
</p>
</descr>
<seealso>
<link id="#fcl.db.TDataLink.DataSet">TDataLink.DataSet</link>
<link id="#fcl.db.TDataLink.DataSource">TDataLink.DataSource</link>
<link id="#fcl.db.TField">TField</link>
</seealso>
</element>
<element name="TComponentDataLink.Fields.Index">
<short>
Ordinal position for the TField instance returned for the linked dataset.
</short>
</element>
<element name="TComponentDataLink.VisualControl" link="#fcl.db.TDataLink.VisualControl"/>
<element name="TColumnTitle">
<short>
<var>TColumnTitle</var> is a <var>TGridColumnTitle</var> descendant.
</short>
<descr>
<p>
<var>TColumnTitle</var> is a <var>TGridColumnTitle</var> descendant which
ensures the correct caption is used as the title for a column in a data-aware
grid.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TColumnTitle.GetDefaultCaption">
<short>Gets the default caption used as the title for the grid column.</short>
<descr>
<p>
<var>GetDefaultCaption</var> is an overridden String function in
<var>TColumnTitle</var> which provides the default caption used as the title
for a grid column.
</p>
<p>
If a Field has been created for the column, the value of its DisplayName
property is used as the caption. If only the FieldName property is set, it is
used as the caption. Otherwise, the inherited method is called to get the
default caption for the column.
</p>
</descr>
<seealso>
<link id="TColumn">TColumn</link>
<link id="#fcl.db.TField">TField</link>
<link id="#lcl.grids.TGridColumnTitle.GetDefaultCaption">TGridColumnTitle.GetDefaultCaption</link>
</seealso>
</element>
<element name="TColumnTitle.GetDefaultCaption.Result">
<short>Default value used as the title for the column.</short>
</element>
<element name="TColumn">
<short>
Implements a display column for the TDBGrid control.
</short>
<descr>
<p>
<var>TColumn</var> is a <var>TGridColumn</var> descendant that represents a
display column in a database grid control. TColumn extends the ancestor class
to provide support for using TField for data access, display formatting,
alignment, as well as use of check box and lookup list Fields. TColumn also
implements support for features in TDBGrid like: automatic rows, and
design-time vs run-time column ordering.
</p>
<p>
TColumn provides properties and methods needed to access and maintain the
Dataset, Field, FieldName, and DisplayFormat for the column. TColumn provides
overridden functions which implement facilities from the ancestor class.
</p>
<p>
TColumn instances can be created at run-time or design-time; properties are
provided to indicate when the instance was created. The display order for
columns need not correspond to the order of the Fields in the dataset, nor do
all Fields in the dataset need to be represented by a display column.
</p>
<p>
TColumn instances are used as the collection item for the
<var>TDBGridColumns</var> collection.
</p>
</descr>
<seealso>
<link id="TDBGrid.Columns"/>
<link id="TDBGridColumns"/>
<link id="#lcl.grids.TGridColumn">TGridColumn</link>
<link id="#fcl.db.TField">TField</link>
<link id="#fcl.db.TDataset">TDataset</link>
</seealso>
</element>
<element name="TColumn.FDisplayFormat"/>
<element name="TColumn.FDisplayFormatChanged"/>
<element name="TColumn.FFieldName"/>
<element name="TColumn.FField"/>
<element name="TColumn.FIsAutomaticColumn"/>
<element name="TColumn.FDesignIndex"/>
<element name="TColumn.ApplyDisplayFormat">
<short>
Applies a new display format to the Field which gets data for the column.
</short>
<descr>
<p>
<var>ApplyDisplayFormat</var> is a procedure used to apply a new value in
DisplayFormat to the Field used to get data for the column. Field must
contain a valid TField instance, or no actions are performed in the method.
</p>
<p>
ApplyDisplayFormat ensures that the new value for DisplayFormat is properly
applied to Fields using the TNumericField or TDateTimeField class types.
ApplyDisplayFormat is used in the implementation of the LinkField method.
</p>
</descr>
<seealso>
<link id="TColumn.LinkField">TColumn.LinkField</link>
</seealso>
</element>
<element name="TColumn.GetDataset">
<short>Gets the Dataset for the column.</short>
<descr>
<p>
<var>GetDataset</var> is a TDataset function used to get the dataset which
provides data for the column. GetDataset uses Grid (cast to a TCustomDBGrid
instance) to access its DataLink and get the DataSet for the column
definition. The return value is <b>Nil</b> if the Grid control has not been
assigned for the column.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid">TCustomDBGrid</link>
<link id="#lcl.grids.TGridColumn.Grid">TGridColumn.Grid</link>
<link id="#fcl.db.TDataset">TDataset</link>
</seealso>
</element>
<element name="TColumn.GetDataset.Result">
<short>Dataset for the column definition.</short>
</element>
<element name="TColumn.GetDisplayFormat">
<short>
Get the value for the DisplayFormat property.
</short>
<descr>
<p>
<var>GetDisplayFormat</var> is a String function used to get the value for
the DisplayFormat property. The value in the member variable is returned when
it is different than the stored value for DisplayFormat. Otherwise, the value
from GetDefaultDisplayFormat is used as the return value.
</p>
<p>
Use DisplayFormat to read and write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TColumn.GetDisplayFormat.Result">
<short>Value for the DisplayFormat property.</short>
</element>
<element name="TColumn.GetField">
<short>
Gets the value for the Field property.
</short>
<descr>
<p>
<var>GetField</var> is a TField function used to get the value for the Field
property. GetField ensures that Field has been assigned, and that FieldName
has been set for the class instance. The LinkField method is called to find
and store the TField instance used as the return value for the method. The
return value is <b>Nil</b> if a Field with the name in FieldName cannot be
found.
</p>
<p>
Use Field to read or write the value in the property.
</p>
</descr>
<seealso>
<link id="TColumn.Field">TColumn.Field</link>
<link id="TColumn.LinkField">TColumn.LinkField</link>
<link id="#fcl.db.TField">TField</link>
</seealso>
</element>
<element name="TColumn.GetField.Result">
<short>Field used to access data for the column.</short>
</element>
<element name="TColumn.GetIsDesignColumn">
<short>
Gets the value for the IsDesignColumn property.
</short>
<descr>
<p>
<var>GetIsDesignColumn</var> is a Boolean function used to get the value for
the IsDesignColumn property. The return value is <b>True</b> when DesignIndex
contains a value in the range <var>0..9999</var>.
</p>
<p>
The upper range for DesignIndex is a result of the value assigned in Create.
The value <var>10000</var> is used in the property when Grid has not assigned
for the collection, or Grid includes csLoading in its ComponentState property.
</p>
<p>
Use IsDesignColumn to read the value for the property.
</p>
</descr>
<seealso>
<link id="TColumn.DesignIndex">TColumn.DesignIndex</link>
<link id="TDBGridColumns">TDBGridColumns</link>
<link id="TDBGrid.Columns">TDBGrid.Columns</link>
</seealso>
</element>
<element name="TColumn.GetIsDesignColumn.Result">
<short>Value for the IsDesignColumn property.</short>
</element>
<element name="TColumn.IsDisplayFormatStored">
<short>
Determines the storage specifier for the DisplayFormat property.
</short>
<descr>
<p>
<var>IsDisplayFormatStored</var> is a Boolean function used as the storage
specifier for the DisplayFormat property. The return value is <b>True</b> if
the member variable for the DisplayFormat property is different than the one
used for the Field.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TColumn.IsDisplayFormatStored.Result">
<short>
<b>True</b> when DisplayFormat is different the one used for the Field.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TColumn.SetDisplayFormat">
<short>
Sets the value in the DisplayFormat property.
</short>
<descr>
<p>
<var>SetDisplayFormat</var> is a procedure used to set the value in the
DisplayFormat property. SetDisplayFormat compares the value stored in the
member variable to the new value for the property. If they are different, the
new value is stored and a flag is set to indicate that the display format has
changed. SetDisplayFormat calls the ColumnChanged method to indicate that the
column definition has been updated.
</p>
<p>
No actions are performed in the method when the DisplayFormat has not been
changed.
</p>
<p>
Use DisplayFormat to read or write the value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TColumn.SetDisplayFormat.AValue">
<short>New value for the DisplayFormat property.</short>
</element>
<element name="TColumn.SetField">
<short>
Sets the value in the Field property.
</short>
<descr>
<p>
<var>SetField</var> is a procedure used to set the value in the Field
property. SetField compares the new value for the property to the value
stored in the member variable. When they are different, the new value is
stored in the member variable. If the new value is not <b>Nil</b>, its
FieldName is updated as well. SetField calls the ColumnChanged method to
indicate that the column definition has been updated.
</p>
<p>
No actions are performed in the method when the new Field value is the same
as the value stored in the member variable .
</p>
<p>
Use Field to read or write the value for the property.
</p>
</descr>
<seealso>
<link id="TColumn.Field">TColumn.Field</link>
<link id="TColumn.FieldName">TColumn.FieldName</link>
</seealso>
</element>
<element name="TColumn.SetField.AValue">
<short>New value for the Field property.</short>
</element>
<element name="TColumn.SetFieldName">
<short>
Sets the value in the FieldName property.
</short>
<descr>
<p>
<var>SetFieldName</var> is a procedure used to set the value in the FieldName
property. SetFieldName compares the new value to the value stored in the
member variable for the property. No actions are performed in the method when
they are the same.
</p>
<p>
SetFieldName stores the new value for the property in its member variable,
and calls the LinkField method to find the Field with the specified name.
DisplayFormat is updated when a matching Field is located in the dataset for
the column.
</p>
</descr>
<seealso>
<link id="TColumn.LinkField">TColumn.LinkField</link>
<link id="TColumn.DisplayFormat">TColumn.DisplayFormat</link>
</seealso>
</element>
<element name="TColumn.SetFieldName.AValue">
<short>New value for the FieldName property.</short>
</element>
<element name="TColumn.CreateTitle">
<short>
Creates the title used for the grid column.
</short>
<descr>
<p>
<var>CreateTitle</var> is an overridden TGridColumnTitle function used to
create the title used as a fixed caption for the column.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TGridColumn.CreateTitle">TGridColumn.CreateTitle</link>
</seealso>
</element>
<element name="TColumn.CreateTitle.Result">
<short>Title for the column.</short>
</element>
<element name="TColumn.GetDefaultAlignment">
<short>
Gets the default alignment for the Field in the column definition.
</short>
<descr>
<p>
<var>GetDefaultAlignment</var> is an overridden TAlignment function that gets
the default alignment for the Field in the column definition.
GetDefaultAlignment gets the button style used by the default editor for
Field. For check box and button-style editors, center alignment is used.
Otherwise, the Alignment in Field is used. If Field has not been assigned,
left alignment is used.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TColumn.GetDefaultAlignment.Result">
<short>Alignment for the Field and/or editor style.</short>
</element>
<element name="TColumn.GetDefaultDisplayFormat">
<short>
Gets the default display format for the Field in a column.
</short>
<descr>
<p>
<var>GetDefaultDisplayFormat</var> is a String function used to get the
default display format provided for the Field in a column definition.
GetDefaultDisplayFormat uses the Field property to get its DisplayFormat for
use as the return value in the method. The return value is a empty string
<var>('')</var> when Field has not been assigned for the column definition.
</p>
<p>
GetDefaultDisplayFormat is used in the implementation of the GetDisplayFormat
method.
</p>
</descr>
<seealso>
<link id="TColumn.Field"/>
<link id="TColumn.DisplayFormat"/>
</seealso>
</element>
<element name="TColumn.GetDefaultDisplayFormat.Result">
<short>Default display format for the Field in the column.</short>
</element>
<element name="TColumn.GetDefaultValueChecked">
<short>
Gets the default value for a check box in the Checked state as a String.
</short>
<descr>
<p>
<var>GetDefaultValueChecked</var> is an overridden String function used to
get the default value used for a check box column in the Checked state. When
Field has been assigned for the column, and the data type is ftBoolean, the
return value is <var>'TRUE'</var>. If Field has not been assigned, the return
value is <var>'1'</var>.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TColumn.GetDefaultValueChecked.Result">
<short>'TRUE' or '1'</short>
</element>
<element name="TColumn.GetDefaultValueUnchecked">
<short>
Gets the default String value for a check box in the UnChecked state.
</short>
<descr>
<p>
<var>GetDefaultValueUnchecked</var> is an overridden String function used to
get the default value used for a check box column in the UnChecked state.
When Field has been assigned for the column, and the data type is ftBoolean
the return value is <var>'FALSE'</var>. If Field has not been assigned, the
return value is <var>'0'</var>.
</p>
</descr>
<seealso>
</seealso>
</element>
<element name="TColumn.GetDefaultValueUnchecked.Result">
<short>'FALSE' or '0'</short>
</element>
<element name="TColumn.GetDefaultVisible">
<short>
Indicates if the Field for the column is Visible.
</short>
<descr>
<p>
<var>GetDefaultVisible</var> is an overridden Boolean function that indicates
if the Field for the column is Visible. GetDefaultVisible uses Field to get
its Visible property for use as the return value in the method. If Field has
not been assigned in the column, the return value is <b>True</b>.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TGridColumn.GetDefaultVisible">TGridColumn.GetDefaultVisible</link>
</seealso>
</element>
<element name="TColumn.GetDefaultVisible.Result">
<short><b>True</b> when the Field for the column is visible.</short>
</element>
<element name="TColumn.GetDisplayName">
<short>
Gets the display name for the collection item.
</short>
<descr>
<p>
<var>GetDisplayName</var> is an overridden String function used to get the
display name for the column. The display name is used at design-time to get
the name for the collection item, and at run-time when a dataset for the
column has not been assigned or opened.
</p>
<p>
The value in FieldName is used as the return value for the method, when it
has been assigned in the column. Otherwise, the inherited GetDisplayName
method is called to get the return value.
</p>
<p>
Use FieldName to set the name of the Field used for the column.
</p>
</descr>
<seealso>
<link id="TColumn.FieldName"/>
<link id="#rtl.classes.TCollectionItem.DisplayName">TCollectionItem.DisplayName</link>
</seealso>
</element>
<element name="TColumn.GetDisplayName.Result">
<short>Display name for the collection item.</short>
</element>
<element name="TColumn.GetDefaultReadOnly">
<short>
Gets the default value for the ReadOnly property.
</short>
<descr>
<p>
<var>GetDefaultReadOnly</var> is an overridden Boolean function which gets
the default value for the ReadOnly property. GetDefaultReadOnly combines the
ReadOnly values found in both the Grid and the Field for the dataset to
derive the value for the method. The return value is <b>True</b> when Grid or
Field is not assigned for the column.
</p>
</descr>
<seealso>
<link id="TGridColumn.GetDefaultReadOnly"/>
<link id="TCustomDBGrid.ReadOnly"/>
<link id="#fcl.db.TField.ReadOnly">TField.ReadOnly</link>
</seealso>
</element>
<element name="TColumn.GetDefaultReadOnly.Result">
<short>Effective value for the ReadOnly property.</short>
</element>
<element name="TColumn.GetDefaultWidth">
<short>
Gets the effective width for the column.
</short>
<descr>
<p>
<var>GetDefaultWidth</var> is an overridden Integer function used to get the
effective width for the column. The return value is calculated using the Grid
and its Canvas to find the space needed for the Field in the column. When the
Grid has Options that include the value dgTitles, Title.Caption and
Title.Font are included in the calculation. GetDefaultWidth calls the
CalcColumnFieldWidth function to get the canvas width used as the return
value.
</p>
<p>
The return value is -1 if the Grid has not been assigned for the column. The
return value contains Grid.DefaultColWidth when Field has not been assigned
in the column.
</p>
</descr>
<seealso>
<link id="TGridColumn.GetDefaultWidth">TGridColumn.GetDefaultWidth</link>
</seealso>
</element>
<element name="TColumn.GetDefaultWidth.Result">
<short>Effective width for the column.</short>
</element>
<element name="TColumn.GetPickList">
<short>
Gets the values in the pick list for the column.
</short>
<descr>
<p>
<var>GetPickList</var> is an overridden TStrings function which gets the
values in the pick list for the column. GetPickList calls the inherited
method, and provides support for Lookup Fields in the column definition.
</p>
<p>
When Field is assigned and contains a Lookup Field (fkLookup in its FieldKind
property), values from the LookupList or the LookupDataset are included in
the return value. When LookupDataset is used, the result includes values from
the LookupResultField for each of the rows in the dataset.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TGridColumn.PickList">TGridColumn.PickList</link>
<link id="#fcl.db.TField">TField</link>
</seealso>
</element>
<element name="TColumn.GetPickList.Result">
<short>Values available for the lookup-style column.</short>
</element>
<element name="TColumn.IsAutomaticColumn">
<short>
Indicates if the column was automatically added at run-time.
</short>
<descr>
<p>
<var>IsAutomaticColumn</var> is a read-only Boolean property that indicates
if the column was automatically added to the collection at run-time. The
value in IsAutomaticColumn is updated when TDBGrid.AddAutomaticColumns and
TDBGridColumns.RemoveAutoColumns add or remove items in the collection.
</p>
<p>
Use IsDesignColumn to determine if the column was added at design-time. Use
TDBGridColumns.HasAutomaticColumns to determine if any automatic columns are
stored in the collection. Use TDBGrid.OptionsExtra to enable or disable
automatically columns in a database grid control.
</p>
</descr>
<seealso>
<link id="TColumn.IsDesignColumn">TColumn.IsDesignColumn</link>
<link id="TDBGridColumns">TDBGridColumns</link>
<link id="TDBGrid.Columns">TDBGrid.Columns</link>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<element name="TColumn.IsDesignColumn">
<short>
Indicates if the column was added at design-time.
</short>
<descr>
<p>
<var>IsDesignColumn</var> is a read-only Boolean property which indicates if
the column was added at design-time. GetIsDesignColumn is the read access
specifier for the IsDesignColumn property.
</p>
<p>
Use IsAutomaticColumn to determine if the column was added at run-time. Use
TDBGridColumns.HasDesignColumns to determine if any design-time columns are
stored in the collection.
</p>
</descr>
<seealso>
<link id="TColumn.IsAutomaticColumn">TColumn.IsAutomaticColumn</link>
<link id="TDBGridColumns.HasDesignColumns">TDBGridColumns.HasDesignColumns</link>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
</seealso>
</element>
<element name="TColumn.LinkField">
<short>
Establishes a link between the FieldName and the Field in a Dataset.
</short>
<descr>
<p>
<var>LinkField</var> is a procedure used to establish a link between the
FieldName in the column and the Field in its Dataset. LinkField requires Grid
to be assigned in order to access the DataLink and its Dataset. When Grid is
unassigned, the value for Field is <var>Nil</var>. The DataLink in Grid must
be Active to access the Fields in the dataset. When DataLink in not Active,
the value in Field is <var>Nil</var>.
</p>
<p>
LinkField finds the Field in the linked dataset with the name specified in
FieldName. The TField instance is stored in the Field property. LinkField
calls the ApplyDisplayFormat method to update the DisplayFormat used for the
column.
</p>
<p>
LinkField is called when reading the value for the Field property and it has
not already been assigned.
</p>
</descr>
<seealso>
<link id="TColumn.LinkField"/>
<link id="TColumn.DisplayFormat"/>
<link id="TColumn.Field"/>
<link id="TCustomDBGrid.DataLink"/>
</seealso>
</element>
<element name="TColumn.Create">
<short>
Constructor for the <var>TColumn</var> instance.
</short>
<descr>
<p>
<var>Create</var> is the constructor for the <var>TColumn</var> instance.
Create calls the inherited <var>Create</var> constructor and sets the
DesignIndex used for the new entry in the
<link id="#rtl.classes.TCollection">TCollection</link>. Create is called by the <link id="#rtl.classes.TCollection.Add">TCollection.Add</link> method and should not be called directly under normal circumstances.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TGridColumn.Create">TGridColumn.Create</link>
<link id="#rtl.classes.TCollection">TCollection</link>
</seealso>
</element>
<element name="TColumn.Create.ACollection">
<short>Collection that owns the collection item.</short>
</element>
<element name="TColumn.Assign">
<short>
Stores properties from a persistent class in the current class instance.
</short>
<descr>
<p>
<var>Assign</var> is an overridden procedure which stores properties from
Source in the current class instance. Assign calls the inherited Assign
method. When Source is a TColumn class instance, the values for the following
are stored in the current class instance:
</p>
<ul>
<li>FieldName</li>
<li>DisplayFormat</li>
<li>ValueChecked</li>
<li>ValueUnchecked</li>
</ul>
</descr>
<seealso>
<link id="#rtl.classes.TPersistent.Assign">TPersistent.Assign</link>
</seealso>
</element>
<element name="TColumn.Assign.Source">
<short>Persistent class with values stored in the method.</short>
</element>
<element name="TColumn.IsDefault">
<short>
Indicates if the column uses its default display format.
</short>
<descr>
<p>
<var>IsDefault</var> is an overridden Boolean function that indicates if the
column uses its default display format. The return value is <b>True</b> when
the value in the DisplayFormat property has not been changed. IsDefault calls
the inherited method to get the return value for the method.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TGridColumn.IsDefault">TGridColumn.IsDefault</link>
</seealso>
</element>
<element name="TColumn.IsDefault.Result">
<short><b>True</b> when DisplayFormat has been changed.</short>
</element>
<element name="TColumn.DesignIndex">
<short>
Order for the column in its collection at design-time.
</short>
<descr>
<p>
<var>DesignIndex</var> is a read-only Integer property that contains the
order for the column in its collection at design-time. The value in
DesignIndex is used primarily when TDBGridColumns.ResetColumnsOrder compares
and sorts the items in its collection.
</p>
</descr>
<seealso>
<link id="TDBGridColumns.ResetColumnsOrder"/>
<link id="TColumn.Create"/>
</seealso>
</element>
<element name="TColumn.Field">
<short>
<var>Field</var> in the <var>Dataset</var> associated with this
<var>Column</var>.
</short>
<descr>
<p>
<var>Field</var> is a <var>TField</var> property that provides access to the
content and other attributes for the dataset Field represented by the column.
GetField reads the value for the property. SetField writes the value for the
property.
</p>
</descr>
<seealso>
<link id="TColumn.LinkField"/>
<link id="#fcl.db.TField">TField</link>
</seealso>
</element>
<element name="TColumn.FieldName">
<short>
Name of the Field with data for the column.
</short>
<descr>
<p>
<var>FieldName</var> is a String property which contains the name of the
Field used to get data for the column. <var>SetFieldName</var> is the write
access specifier for the property. Changing the value in FieldName causes
LinkField to be called to find the Field with the specified name. The value
in DisplayFormat is also modified when the property was has changed.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TColumn.DisplayFormat">
<short>The format to be used for display in this column.</short>
<descr>
<p>
<var>DisplayFormat</var> is a String property which specifies a format string
used for displaying the value of a Field with the name in FieldName. Use of
DisplayFormat in TColumn is consistent with its use in TField (and
descendants), but can assign a value that overrides the default display
format for the Field.
</p>
<p>
<var>GetDisplayFormat</var> is the read access specifier for the property.
<var>SetDisplayFormat</var> is the write access specifier for the property.
Changing the value in DisplayFormat causes the ColumnChanged method to be
called when the column definition has been updated.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TColumnOrder">
<short>
Enumerated type defining alternate ordering for columns.
</short>
<descr>
<p>
<var>TColumnOrder</var> is an enumerated type which defines alternate
ordering for columns in a collection. The values specify whether the
design-time or run-time index is used when ordering TColumn instances in the
TDBGridColumns collection.
</p>
</descr>
<seealso>
<link id="#lcl.dbgrids.TColumn">TColumn</link>
<link id="#lcl.dbgrids.TDBGridColumns">TDBGridColumns</link>
<link id="#lcl.dbgrids.TDBGrid.Columns">TDBGrid.Columns</link>
</seealso>
</element>
<element name="TColumnOrder.coDesignOrder">
<short>Columns are ordered using the DesignIndex value.</short>
</element>
<element name="TColumnOrder.coFieldIndexOrder">
<short>Columns are order by the Index for the Field.</short>
</element>
<element name="TDbGridColumns">
<short>Implements a collection for columns in a database-aware grid.</short>
<descr>
<p>
<var>TDBGridColumns</var> is a TGridColumns descendant which implements a
collection for columns added to TDBGrid.
</p>
<p>
TDBGridColumns extends the ancestor class to include support for adding and
removing automatic columns at run-time. Automatic columns are a feature in
TDBGrid that, when enabled, ensures the collection has a column definition
for each Field in the linked dataset for its grid control. Methods and
Properties are provided to identify columns added at run-time, and to order
entries in the collection by their design-time or run-time indices.
</p>
<p>
Items is the default property for the collection. TColumn is the class type
used for Items added to the collection.
</p>
<p>
Use the Add method to create a new collection item in the Items property. Use
LinkFields to update the association between an item in the collection and
the TField used to access its data. Use ResetColumnsOrder to change the order
of Items in the collection.
</p>
</descr>
<seealso>
<link id="TDBGridColumns.Items"/>
<link id="TDBGridColumns.Add"/>
<link id="TDBGridColumns.LinkFields"/>
<link id="TDBGridColumns.ResetColumnsOrder"/>
<link id="TColumn"/>
<link id="#lcl.grids.TGridColumns">TGridColumns</link>
<link id="#lcl.grids.TGridColumn">TGridColumn</link>
</seealso>
</element>
<element name="TDBGridColumns.GetColumn">
<short>
Gets the collection item stored at the specified ordinal position.
</short>
<descr>
<p>
<var>GetColumn</var> is a TColumn function which gets the column at the
specified position in the collection. GetColumn is the read access specifier
for the Items property.
</p>
<p>
Use Items to read and write values in the collection.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDBGridColumns.GetColumn.Result">
<short>Collection item at the specified position.</short>
</element>
<element name="TDBGridColumns.GetColumn.Index">
<short>Position in the collection.</short>
</element>
<element name="TDBGridColumns.SetColumn">
<short>
Stores the collection item at the specified position.
</short>
<descr>
<p>
<var>SetColumn</var> is a procedure which stores the column in Value at the
specified position in the collection. SetColumn is the write access specifier
for the Items property. SetColumn uses the Assign method to store the new
Value in the collection.
</p>
<p>
Use Items to read and write values in the collection.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDBGridColumns.SetColumn.Index">
<short>Position where the collection item is stored </short>
</element>
<element name="TDBGridColumns.SetColumn.Value">
<short>Collection item to store at the specified position.</short>
</element>
<element name="TDBGridColumns.Update">
<short>
Redraws the Grid control that owns the column collection.
</short>
<descr>
<p>
<var>Update</var> causes the TDBGrid control which owns the column collection
to be redrawn. The value in Grid must be assigned, or no actions are
performed in the method. In addition, the Grid control will not be updated if
component streaming is active (csLoading in its ComponentState). Update calls
TDBGrid.LayoutChanged to cause the Grid control to be redrawn.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TGridColumns">TGridColumns</link>
<link id="#rtl.classes.TCollection">TCollection</link>
</seealso>
</element>
<element name="TDBGridColumns.Update.Item">
<short>Collection item triggering the update.</short>
</element>
<element name="TDBGridColumns.ColumnFromField">
<short>
<var>ColumnFromField</var> returns the collection item for the specified
Field.
</short>
<descr>
<p>
<var>ColumnFromField</var> returns the collection item for the specified
Field. The return value is <var>Nil</var> when Field has not been assigned.
</p>
<p>
ColumnFromField iterates over the Items in the collection to locate the
specified Field. The return value is <var>Nil</var> when Field cannot be
located in the Items for the collection.
</p>
<p>
ColumnFromField is used in the TDBGrid.AddAutomaticColumns method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDBGridColumns.ColumnFromField.Result">
<short>Collection item for the specified Field.</short>
</element>
<element name="TDBGridColumns.ColumnFromField.Field">
<short>Field to locate in the collection.</short>
</element>
<element name="TDBGridColumns.HasAutomaticColumns">
<short>
<var>HasAutomaticColumns</var> indicates if any items in the collection are
an automatic column.
</short>
<descr>
<p>
<var>HasAutomaticColumns</var> is a <var>Boolean</var> function that
indicates if any items in the collection are an automatic column added at
run-time. Automatic columns are a feature in TDBGrid enabled by adding the
appropriate value to its OptionsExtra property. HasAutomaticColumns returns
<b>True</b> if a TColumn instance in the Items property has its
IsAutomaticColumn property set.
</p>
</descr>
<seealso>
<link id="TDBGrid.OptionsExtra">TDBGrid.OptionsExtra</link>
<link id="TDBGridColumns.RemoveAutoColumns">TDBGridColumns.RemoveAutoColumns</link>
</seealso>
</element>
<element name="TDBGridColumns.HasAutomaticColumns.Result">
<short>
<b>True</b> when automatic columns are stored in the collection.
</short>
</element>
<element name="TDBGridColumns.HasDesignColumns">
<short>
<var>HasDesignColumns</var> indicates if the collection contains any items
explicitly added at design-time.
</short>
<descr>
<p>
<var>HasDesignColumns</var> is a Boolean function that indicates if the
collection contains any items explicitly added at design-time.
HasDesignColumns returns <b>True</b> if Items contains a TColumn instance
with its IsDesignColumn property set.
</p>
</descr>
<seealso>
<link id="TDBGridColumns.Items"/>
<link id="TDBGridColumns.ResetColumnsOrder"/>
<link id="TColumn.IsDesignColumn"/>
</seealso>
</element>
<element name="TDBGridColumns.HasDesignColumns.Result">
<short><b>True</b> an item has its IsDesignColumn property set.</short>
</element>
<element name="TDBGridColumns.RemoveAutoColumns">
<short>
<var>RemoveAutoColumns</var> removes automatic columns in the collection.
</short>
<descr>
<p>
<var>RemoveAutoColumns</var> is a procedure used to remove any automatic
columns in the collection. RemoveAutoColumns uses HasAutomaticColumns to
determine if any action is required.
</p>
<p>
When HasAutomaticColumns returns <b>True</b> the Grid updates its GridStatus
to include the value gsRemovingAutoColumns. RemoveAutoColumns calls the
Delete method for any column having its IsAutomaticColumn property set to
<b>True</b>. gsRemovingAutoColumns is removed from the GridStatus property in
the Grid prior to exiting from the method.
</p>
<p>
Applications do not normally call the RemoveAutoColumns method. Use
OptionsExtra in TDBGrid to disable the automatic columns feature for the grid
control.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.GridStatus"/>
<link id="TCustomDBGrid.OptionsExtra"/>
</seealso>
</element>
<element name="TDBGridColumns.Add">
<short>
<var>Add</var> creates and stores a new item in the collection.
</short>
<descr>
<p>
<var>Add</var> creates and stores a new TColumn instance in the collection.
</p>
<p>
Add uses the Grid property (and the value in its GridStatus property) to
determine whether the column is being explicitly added to the collection or
added as a result of the automatic columns option in the grid. If the Grid
contains the value gsAddingAutoColumns in its GridStatus property, existing
automatic columns are left in the collection. Otherwise, RemoveAutoColumns is
called prior to creating and storing the new TColumn instance.
</p>
<p>
Add calls the inherited Add method to create and store the new TColumn
instance.
</p>
</descr>
<seealso>
<link id="#rtl.classes.TCollection.Add">TCollection.Add</link>
</seealso>
</element>
<element name="TDBGridColumns.Add.Result">
<short>TColumn added to the collection.</short>
</element>
<element name="TDBGridColumns.ColumnByFieldname">
<short>Gets the collection item with the specified field name.</short>
<descr>
<p>
<var>ColumnByFieldname</var> is a <var>TColumn</var> function used to get the
collection item with the field name in <var>aFieldname</var>. Performs a
case-insensitive comparison between the FieldName property in the collection
items and the value in aFieldname. The return value is <b>Nil</b> if a column
is not found with the specified name.
</p>
</descr>
<seealso/>
</element>
<element name="TDBGridColumns.ColumnByFieldname.Result">
<short>TColumn instance with the specified name, or <b>Nil</b>.</short>
</element>
<element name="TDBGridColumns.ColumnByFieldname.AFieldname">
<short>Field name to locate the collection items.</short>
</element>
<element name="TDBGridColumns.ColumnByTitle">
<short>Gets the collection item with the specified column title.</short>
<descr>
<p>
<var>ColumnByTitle</var> is a <var>TColumn</var> function used to get the
collection item with the column title specified in aTitle. ColumnByTitle is
an overridden method, and calls the inherited method to get the TColumn
return value.
</p>
</descr>
<seealso/>
</element>
<element name="TDBGridColumns.ColumnByTitle.Result">
<short>
Column instance with the specified title, or <b>Nil</b> when not found.
</short>
</element>
<element name="TDBGridColumns.ColumnByTitle.ATitle">
<short>Column title to located in the collection items.</short>
</element>
<element name="TDBGridColumns.LinkFields">
<short>
Associates column items with the corresponding Fields in the Dataset.
</short>
<descr>
<p>
<var>LinkFields</var> is a procedure which associates column items to the
corresponding Fields in the Dataset for the Grid. LinkFields uses Grid to
call its BeginLayout and EndLayout methods prior to and immediately after
linking the Items in the collection to fields in the Dataset. This forces the
Grid control to be updated when the method has completed. LinkFields calls
the TColumn.LinkField method for each of the Items in the collection.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDBGridColumns.ResetColumnsOrder">
<short>
<var>ResetColumnsOrder</var> arranges columns in the collection to the
specified order.
</short>
<descr>
<p>
<var>ResetColumnsOrder</var> is a procedure used to arrange columns in the
collection to the order specified in the ColumnOrder argument. ColumnOrder
can contain the following values:
</p>
<dl>
<dt>coDesignOrder</dt>
<dd>
TColumn.DesignIndex (when available) is used to order collection items.
</dd>
<dt>coFieldIndex</dt>
<dd>
The index for the TColumn.Field (when available) is used to order collection
items.
</dd>
</dl>
<p>
Otherwise, the index of the collection item is unchanged.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDBGridColumns.ResetColumnsOrder.ColumnOrder">
<short>Sort order for columns in the collection.</short>
</element>
<element name="TDBGridColumns.Items">
<short>
<var>Items</var> provides indexed access to columns added to the collection.
</short>
<descr>
<p>
<var>Items</var> is a TColumn property that provides indexed access to
columns in the collection by their ordinal position (in the range
<var>0..Count-1</var>). Read and write access to columns in the Items
property are cast to the TColumn class type used in the collection. Write
access calls the Assign method in the TColumn instance stored at the
specified position.
</p>
<p>
Items is the default property for the collection.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TDBGridColumns.Items.Index">
<short>Position for the collection item.</short>
</element>
<element name="TCustomDBGrid">
<short>
<var>TCustomDBGrid</var> is the base class for <var>TDBGrid</var>.
</short>
<descr>
<p>
<var>TCustomDBGrid</var> is a <var>TCustomGrid</var> descendant and the base
class for <var>TDBGrid</var>. TCustomDBGrid adds capabilities needed to
implement a database-aware grid control. One key feature is the
TComponentDataLink in DataLink used to coordinate access and event handlers
between the grid control and its linked dataset. Another key feature is the
use of the Options and OptionsExtra properties to enable/disable features or
behaviors in the grid control.
</p>
<p>
TCustomDBGrid overrides certain features from the ancestor class to provide
consistent use with Fields, Field kinds, and values in TDataset.
</p>
<p>
Applications should use the TDBGrid descendant which sets the scope of
properties, methods, and event handlers to public or published.
</p>
</descr>
<seealso>
<link id="#lcl.grids.HowToUseGrids">How To Use Grids</link>
<link id="#lcl.dbctrls.HowToUseDataAwareControls">How To Use Data-Aware Controls</link>
</seealso>
</element>
<element name="TCustomDBGrid.FDataLink"/>
<element name="TCustomDBGrid.FExtraOptions"/>
<element name="TCustomDBGrid.FOnCellClick"/>
<element name="TCustomDBGrid.FOnColEnter"/>
<element name="TCustomDBGrid.FOnColExit"/>
<element name="TCustomDBGrid.FOnColumnMoved"/>
<element name="TCustomDBGrid.FOnColumnSized"/>
<element name="TCustomDBGrid.FOnDrawColumnCell"/>
<element name="TCustomDBGrid.FOnDrawColumnTitle"/>
<element name="TCustomDBGrid.FOnFieldEditMask"/>
<element name="TCustomDBGrid.FOnTitleClick"/>
<element name="TCustomDBGrid.FOnSelectEditor"/>
<element name="TCustomDBGrid.FOnCheckboxBitmap"/>
<element name="TCustomDBGrid.FOnCheckboxState"/>
<element name="TCustomDBGrid.FOptions"/>
<element name="TCustomDBGrid.FReadOnly"/>
<element name="TCustomDBGrid.FColEnterPending"/>
<element name="TCustomDBGrid.FLayoutChangedCount"/>
<element name="TCustomDBGrid.FTempText"/>
<element name="TCustomDBGrid.FDrawingActiveRecord"/>
<element name="TCustomDBGrid."/>
<element name="TCustomDBGrid.FDrawingMultiSelRecord"/>
<element name="TCustomDBGrid.FDrawingEmptyDataset"/>
<element name="TCustomDBGrid.FEditingColumn"/>
<element name="TCustomDBGrid.FOldPosition"/>
<element name="TCustomDBGrid.FDefaultColWidths"/>
<element name="TCustomDBGrid.FGridStatus"/>
<element name="TCustomDBGrid.FOldControlStyle"/>
<element name="TCustomDBGrid.FSelectedRows"/>
<element name="TCustomDBGrid.FOnPrepareCanvas"/>
<element name="TCustomDBGrid.FKeySign"/>
<element name="TCustomDBGrid.FSavedRecord"/>
<element name="TCustomDBGrid.FOnGetCellHint"/>
<element name="TCustomDBGrid.FOnRowMoved"/>
<element name="TCustomDBGrid.FFixedRowsExtra"/>
<element name="TCustomDBGrid.EmptyGrid">
<short>
Clears the data display area for the grid control.
</short>
<descr>
<p>
<var>EmptyGrid</var> is a procedure used to clear the data content for the
grid control. EmptyGrid calls the <var>Clear</var> method to remove the
visual display for data in the grid control. Please note that stored data is
not removed; only the visual display for the control is affected. EmptyGrid
ensures that fixed display columns are retained. EmptyGrid also resets the
width of the row indicator to its default value when <var>dgIndicator</var>
is included in the <var>Options</var> for the control.
</p>
<p>
EmptyGrid is used in the implementation of the <var>DoLayoutChanged</var>
method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetColumns">
<short>
Gets the value for the Columns property.
</short>
<descr>
<p>
GetColumns is re-implemented in TCustomDBGrid to return the TDBGridCoumns
type, instead of the TGridColumns types used in the TCustomGrid ancestor.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Columns"/>
<link id="#lcl.grids.TCustomGrid.Columns">TCustomGrid.Columns</link>
</seealso>
</element>
<element name="TCustomDBGrid.GetColumns.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomDBGrid.GetCurrentColumn">
<short>
Gets the value for the SelectedColumn property.
</short>
<descr>
<p>
<var>GetCurrentColumn</var> is a <var>TColumn</var> function used as the read
access specifier for the SelectedColumn property. GetCurrentColumn checks the
<var>Columns</var> property to ensure that it is enabled for the control. The
return value is the TColumn instance stored at SelectedIndex in Columns when
Enabled. The return value is <var>Nil</var> if Columns has not been enabled
for the control.
</p>
<p>
Use SelectedColumn to get the currently selected column in the grid control.
Use SelectedField to the TField which reads and writes data for the currently
selected column in the grid control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetCurrentColumn.Result">
<short>Value for the property.</short>
</element>
<element name="TCustomDBGrid.GetCurrentField">
<short>
Gets the value in the SelectedField property.
</short>
<descr>
<p>
<var>GetCurrentField</var> is a TField function used to get the value in the
SelectedField property. GetCurrentField is the read access specifier for the
SelectedField property. GetCurrentField calls GetFieldFromGridColumn to get
the TField instance used as the value for the property.
</p>
<p>
Use SelectedField to read and write value for the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetCurrentField.Result">
<short>Value for the SelectedField property.</short>
</element>
<element name="TCustomDBGrid.GetDataSource">
<short>
Gets the value for the DataSource property.
</short>
<descr>
<p>
<var>GetDataSource</var> is a TDataSource function used to get the value for
the DataSource property. GetDataSource is the read access specifier for the
DataSource property. GetDataSource gets the DataSource property stored in
DataLink as the return value for the method.
</p>
<p>
Use DataSource to read or write values in the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetDataSource.Result">
<short>Value for the DataSource property.</short>
</element>
<element name="TCustomDBGrid.GetFirstColumn">
<short>
Gets the value for the FirstColumn property.
</short>
<descr/>
<seealso>
<link id="TCustomDBGrid.FirstColumn"/>
</seealso>
</element>
<element name="TCustomDBGrid.GetFirstColumn.Result">
<short>Value for the FirstColumn property.</short>
</element>
<element name="TCustomDBGrid.GetLastColumn">
<short>
Gets the value for the LastColumn property.
</short>
<descr/>
<seealso>
<link id="TCustomDBGrid.LastColumn"/>
</seealso>
</element>
<element name="TCustomDBGrid.GetLastColumn.Result">
<short>Value for the LastColumn property.</short>
</element>
<element name="TCustomDBGrid.GetRecordCount">
<short>
Gets the number of records in the linked dataset.
</short>
<descr>
<p>
<var>GetRecordCount</var> is an Integer function used to get the number of
records in the linked dataset. GetRecordCount uses the DataLink for the grid
to get the RecordCount in its DataSet property. The record count is used as
the return value for the method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetRecordCount.Result">
<short>Number of records in the linked dataset.</short>
</element>
<element name="TCustomDBGrid.GetSelectedFieldRect">
<short>
Gets the value for the SelectedFieldRect property.
</short>
<descr/>
<seealso>
<link id="TCustomDBGrid.SelectedFieldRect"/>
</seealso>
</element>
<element name="TCustomDBGrid.GetSelectedFieldRect.Result">
<short>Value for the SelectedFieldRect property.</short>
</element>
<element name="TCustomDBGrid.GetSelectedIndex">
<short>
Gets the value for the SelectedIndex property.
</short>
<descr>
<p>
<var>GetSelectedIndex</var> is an Integer function used as the read access
specifier for the <var>SelectedIndex</var> property. GetSelectedIndex returns
the ordinal position of the currently selected column in the Columns
property. If Columns has not been Enabled for the control, the ordinal
position of the Field for the currently selected column is returned.
</p>
<p>
Use SelectedIndex to read or write values for the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetSelectedIndex.Result">
<short>Ordinal position of the currently selected column.</short>
</element>
<element name="TCustomDBGrid.OnRecordChanged">
<short>
Default implementation for the OnRecordChanged event handler in
TComponentDataLink.
</short>
<descr>
<p>
<var>OnRecordChanged</var> is a procedure which provides a default
implementation for the OnRecordChanged event handler in TComponentDataLink.
OnRecordChanged ensures that the grid control and the linked dataset are
synchronized when refreshing the active record, selecting the current column,
and re-enabling the edit control when EditMode is active.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnRecordChanged.Field">
<short>
TField instance for the modified field, or Nil to update the entire record.
</short>
</element>
<element name="TCustomDBGrid.OnDatasetChanged">
<short>
Default implementation for the OnDatasetChanged event handler in
TComponentDataLink.
</short>
<descr>
<p>
<var>OnDatasetChanged</var> is a procedure which provides a default
implementation for the OnDatasetChanged event handler in TComponentDataLink.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnDatasetChanged.aDataset">
<short>Dataset with the name included in debugging messages.</short>
</element>
<element name="TCustomDBGrid.OnDatasetOpen">
<short>
Default implementation for the OnDatasetOpen event handler in
TComponentDataLink.
</short>
<descr>
<p>
<var>OnDatasetOpen</var> provides a default implementation for the event
handler in TComponentDataLink.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnDatasetOpen.aDataset">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomDBGrid.OnDatasetClose">
<short>
Implementation for the OnDatasetClose event handler in TComponentDataLink.
</short>
<descr>
<var>OnDatasetClose</var> provides a default implementation for the event
handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnDatasetClose.aDataset">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomDBGrid.OnEditingChanged">
<short>
Implementation for the OnEditingChanged event handler in TComponentDataLink.
</short>
<descr>
<var>OnEditingChanged</var> provides a default implementation for the event
handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnEditingChanged.aDataset">
<short>Dataset for the event notification.</short>
</element>
<element name="TCustomDBGrid.OnInvalidDataset">
<short>
Implementation for the OnInvalidDataSet event handler in TComponentDataLink.
</short>
<descr>
<var>OnInvalidDataSet</var> provides a default implementation for the event
handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnInvalidDataset.ADataset">
<short>Dataset for the event notification.</short>
</element>
<element name="TCustomDBGrid.OnInvalidDataSource">
<short>
Implementation for the event handler in TComponentDataLink.
</short>
<descr>
<var>OnInvalidDataSourcet</var> provides a default implementation for the
event handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnInvalidDataSource.ADataset">
<short>Dataset for the event notification.</short>
</element>
<element name="TCustomDBGrid.OnFocusControl">
<short>
Implements an event handler signalled when a control gets focus.
</short>
<descr>
<p>
<var>OnFocusControl</var> is a procedure which implements the event handler
signalled when a control gets focus in the database grid. It cannot be
overridden. Use the OnFocusControl property in DataLink to override the event
handler.
</p>
<p>
OnFocusControl ensures that SelectedField is updated with the specified Field
and calls the SetFocus method. No actions are performed if CanFocus indicates
the control cannot be focused, or a column is not found for the specified
Field.
</p>
</descr>
<seealso>
<link id="TFocusControlEvent">TFocusControlEvent</link>
<link id="TComponentDataLink">TComponentDataLink</link>
</seealso>
</element>
<element name="TCustomDBGrid.OnFocusControl.aField">
<short>Field reference for the event.</short>
</element>
<element name="TCustomDBGrid.OnLayoutChanged">
<short>
Implementation for the event handler in TComponentDataLink.
</short>
<descr>
<var>OnLayoutChanged</var> provides a default implementation for the event
handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnLayoutChanged.ADataset">
<short>Dataset for the event notification.</short>
</element>
<element name="TCustomDBGrid.OnNewDataset">
<short>
Implementation for the event handler in TComponentDataLink.
</short>
<descr>
<var>OnNewDataset</var> provides a default implementation for the event
handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnNewdataset.ADataset">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomDBGrid.OnDatasetScrolled">
<short>
Implementation for the OnDatasetScrolled event handler in TComponentDataLink.
</short>
<descr>
<var>OnDatasetScrolled</var> provides a default implementation for the event
handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnDatasetScrolled.ADataset">
<short>Dataset for the event notification.</short>
</element>
<element name="TCustomDBGrid.OnDatasetScrolled.Distance">
<short>Number of rows and relative direction for the scroll event.</short>
</element>
<element name="TCustomDBGrid.OnUpdateData">
<short>
Implementation for the OnUpdateData event handler in TComponentDataLink.
</short>
<descr>
<var>OnUpdateData</var> provides a default implementation for the event
handler in TComponentDataLink.
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnUpdateData.ADataset">
<short>Dataset for the event notification.</short>
</element>
<element name="TCustomDBGrid.SetColumns">
<short>Sets the value for the Columns property.</short>
<descr>
</descr>
<seealso>
<link id="TCustomDBGrid.Columns"/>
</seealso>
</element>
<element name="TCustomDBGrid.SetColumns.AValue">
<short>New value for the Columns property.</short>
</element>
<element name="TCustomDBGrid.SetCurrentField">
<short>
Sets the value for the SelectedField property.
</short>
<descr>
<p>
<var>SetCurrentField</var> is a procedure used to set the value in the
SelectedField property. SetCurrentField is the write access specifier for the
SelectedField property. SetCurrentField calls GetGridColumnFromField to
ensure that the Field in AValue becomes the current column in the control. No
actions are performed in the method when AValue contains the same value as
the SelectedField property.
</p>
<p>
Use SelectedField to read or write the value for the property.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.SelectedField"/>
</seealso>
</element>
<element name="TCustomDBGrid.SetCurrentField.AValue">
<short>New value for the property.</short>
</element>
<element name="TCustomDBGrid.SetDataSource">
<short>
Sets the value in the DataSource property.
</short>
<descr>
<p>
<var>SetDataSource</var> is a procedure used to set the value in the
DataSource property. SetDataSource is the write access specifier for the
DataSource property. SetDataSource stores the value in AValue in the
DataSource property for DataLink, refreshes the column widths for the
control, and calls UpdateActive.
</p>
<p>
Use DataSource to read or write the value in the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SetDataSource.AValue">
<short>New data source for the property value.</short>
</element>
<element name="TCustomDBGrid.SetExtraOptions">
<short>
Write access specifier for the ExtraOptions property.
</short>
<descr>
<p>
<var>SetExtraOptions</var> is a procedure used as the write access specifier
for the <var>ExtraOptions</var> property. SetExtraOptions ensures that new
<var>TDBGridExtraOption</var> values in AValue are properly applied to the
grid control. This includes repainting the control when check box columns are
enabled or disabled, and when adding or removing the automatic columns
option. SetExtraOptions calls <var>UpdateActive</var> when automatic columns
have been added or removed.
</p>
<p>
Use ExtraOptions to read or write values in the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SetExtraOptions.AValue">
<short>New value for the ExtraOptions property.</short>
</element>
<element name="TCustomDBGrid.SetFixedRowsExtra">
<short>Sets the value for the FixedRowsExtra property.</short>
<descr/>
<seealso>
<link id="TCustomDBGrid.FixedRowsExtra"/>
</seealso>
</element>
<element name="TCustomDBGrid.SetFixedRowsExtra.AValue">
<short>New value for the FixedRowsExtra property.</short>
</element>
<element name="TCustomDBGrid.SetOptions">
<short>
Sets the values in the Options property.
</short>
<descr>
<p>
<var>SetOptions</var> is a procedure used to set the values in the Options
property. SetOptions is the write access specifier for the Options property.
SetOptions causes other aspects of the grid control to be updated to reflect
changes in the property value. ChangedOptions is updated to reflect the
enumeration values added or removed in the request. Some enumeration values
force other features or behaviors to be disabled. For instance: row
selection. Enabling row selection forces the options for editing, always
displaying the editor, and row highlighting to be removed from the Options
property. Finally, removing multi-selection from the Options property forces
the SelectedRows property to be cleared.
</p>
<p>
AValue is a TDBGridOptions argument that specifies features or behaviors that
will be enabled or disabled in the grid control. Please note that these
options are different than the TGridOption values used in the ancestor class.
</p>
<p>
As a result, SetOptions must translate any TDBGridOption values to their
TGridOption equivalents and store them in the inherited Options property.
</p>
<p>
Options contains the following default values when the control is created:
</p>
<ul>
<li>dgColumnResize</li>
<li>dgColumnMove</li>
<li>dgTitles</li>
<li>dgIndicator</li>
<li>dgRowLines</li>
<li>dgColLines</li>
<li>dgConfirmDelete</li>
<li>dgCancelOnExit </li>
<li>dgTabs</li>
<li>dgEditing</li>
<li>dgAlwaysShowSelection</li>
</ul>
<p>
See TDBGridOption for more information about values in the enumeration.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SetOptions.AValue">
<short>New values for the Options property.</short>
</element>
<element name="TCustomDBGrid.SetRowMoved">
<short>Sets the value for the RowMoved property.</short>
<descr/>
<seealso>
<link id="TCustomDBGrid.RowMoved"/>
</seealso>
</element>
<element name="TCustomDBGrid.SetRowMoved.AValue">
<short>New value for the RowMoved property.</short>
</element>
<element name="TCustomDBGrid.SetSelectedIndex">
<short>
Write access specifier for the SelectedIndex property.
</short>
<descr>
<p>
<var>SetSelectedIndex</var> is a procedure used as the write access specifier
for the <var>SelectedIndex</var> property. SetSelectedIndex updates the
ordinal position of the currently selected column to the specified value.
</p>
<p>
Use SelectedIndex to read or write values for the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SetSelectedIndex.AValue">
<short>New value for the SelectedIndex property.</short>
</element>
<element name="TCustomDBGrid.UpdateBufferCount">
<short>
Sets the number of records buffered for the linked dataset.
</short>
<descr>
<p>
<var>UpdateBufferCount</var> is a procedure used to set the number of records
buffered for the linked dataset. UpdateBufferCount requires that DataLink be
marked as Active to set the buffer count. If DataLink.Active contains
<b>False</b>, no actions are performed in the method.
</p>
<p>
UpdateBufferCount calls GetBufferCount to determine the number of rows that
can be displayed in the control with the DefaultRowHeight. When Options
includes the value dgTitles, the buffer count is decreased by 1 to account
for the fixed title row. UpdateBufferCount stores the new value in the
BufferCount property in DataLink.
</p>
<p>
UpdateBufferCount is called from the UpdateGridCounts method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetColumnCount">
<short>
Gets the number of visible columns or Fields in the grid.
</short>
<descr>
<p>
<var>GetColumnCount</var> is an Integer function used to get the number of
visible columns or Fields for the grid control. GetColumnCount uses the
Columns collection (when its has been Enabled) to get the value in
VisibleCount. When Columns is not Enabled, and OptionsExtra has
dgeAutoColumns enabled, the linked dataset is used to determine the number of
Fields with their Visible flag set. The Dataset cannot be examined if the
DataLink is not marked as Active.
</p>
<p>
GetColumnCount is called from the UpdateGridCounts method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetColumnCount.Result">
<short>Number of visible Fields or columns in the grid.</short>
</element>
<element name="TCustomDBGrid.DefaultFieldColWidth">
<short>
Gets the default column width for the specified Field.
</short>
<descr>
<p>
<var>DefaultFieldColWidth</var> is an Integer function used to get the
default column width for the specified Field. When the specified Field
contains <b>Nil</b>, the value from DefaultColWidth is used. Otherwise, the
DisplayWidth property in the TField instance is used to get the
Canvas.TextWidth for the DisplayName in the Field.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.DefaultFieldColWidth.Result">
<short>Default column width for the field.</short>
</element>
<element name="TCustomDBGrid.DefaultFieldColWidth.F">
<short>Field to examine in the method.</short>
</element>
<element name="TCustomDBGrid.UpdateGridColumnSizes">
<short>
Updates sizes for automatically sized columns in the grid.
</short>
<descr>
<p>
<var>UpdateGridColumnSizes</var> is a procedure used to update the sizes for
automatically sized columns in the grid control. UpdateGridColumnSizes
requires DefaultColWidths to be in use for the grid. No actions are performed
in the method when DefaultColWidths contains <b>False</b>.
</p>
<p>
UpdateGridColumnSizes also requires the Options property to include the value
dgAutoSizeColumns which enables the auto-sized columns feature. No actions
are performed if the feature has not been enable for the grid control.
</p>
<p>
UpdateGridColumnSizes calls the UpdateAutoSizeColumns method to calculate the
widths for the auto-sized columns.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.UpdateScrollbarRange">
<short>
Updates the scroll bar range, page, and position for a visible vertical
scroll bar.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.DoLayoutChanged">
<short>
Update the grid and its scroll bars when its layout has changed.
</short>
<descr>
<p>
<var>DoLayoutChanged</var> is a procedure used to update the grid and its
scroll bars when the layout for the control has changed. No actions are
performed in the method when the control is freed (contains csDestroying in
its ComponentState).
</p>
<p>
DoLayoutChanged calls BeginUpdate to signal changes to the control, and
UpdateGridCounts to determine the number of rows for the update. When
UpdateGridCounts returns 0, the EmptyGrid method is called to clear the grid
control. DoLayoutChanged calls EndUpdate to allow pending changes to be
applied to the control. DoLayoutChanged calls UpdateScrollbarRange to update
scroll bars (when used) for the control.
</p>
<p>
DoLayoutChanged is called from the EndLayout method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.RestoreEditor">
<short>
Re-enables the editor control after scroll bar messages.
</short>
<descr>
<p>
<var>RestoreEditor</var> is a procedure used to re-enable the editor control
in the grid after processing scroll bar messages. RestoreEditor is used when
EditorMode contains <b>True</b>. No actions are performed in the method when
EditorMode contains <b>False</b>. RestoreEditor toggles the value in
EditorMode to force the editor to be refreshed and redrawn.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.ISEOF">
<short>
Indicates if the linked dataset is positioned at the end-of-file.
</short>
<descr>
<p>
<var>ISEOF</var> is a Boolean function used to indicate if the linked dataset
is positioned at the end-of-file. ISEOF uses the DataLink for the control to
access its Active and Dataset properties. DataLink must be Active (contains
<b>True</b>) to access its Dataset. The return value is <b>True</b> when the
TDataset.EOF method returns <b>True</b>. The return value is <b>False</b>
when DataLink is not Active, or TDataset.EOF returns <b>False</b>.
</p>
<p>
ISEOF is used in the KeyDown and MouseDown methods.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.ISEOF.Result">
<short>EOF state for the linked dataset.</short>
</element>
<element name="TCustomDBGrid.ValidDataset">
<short>
Indicates the DataLink contains a valid and active Dataset.
</short>
<descr>
<p>
ValidDataSet is a Boolean function used to indicate if the DataLink for the
control contains a valid and active Dataset. The return value is <b>True</b>
when DataLink has a Dataset assigned to the property, and it has been marked
as Active.
</p>
<p>
ValidDataSet is used in the implementation of various methods including
KeyDown, MouseDown, and DoExit.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.ValidDataset.Result">
<short><b>True</b> when the control points to a valid dataset.</short>
</element>
<element name="TCustomDBGrid.InsertCancelable">
<short>
Indicates if the dataset can cancel an active insert.
</short>
<descr>
<p>
InsertCancelable is a Boolean function that indicates if the dataset for the
control can cancel an active insert operation. InsertCancelable uses the
DataSet in DataLink to ensure that the State contains dsInsert. The return
value is <b>False</b> if DataSet state has any value other than dsInsert.
InsertCancelable also examines both DataSet and DataLink to see if either of
their Modified properties has been set. The return value is <b>False</b> when
either has been modified.
</p>
<p>
InsertCancelable is used in the implementation of methods like KeyDown,
MouseDown, and DoExit.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.InsertCancelable.Result">
<short><b>True</b> when the insert can be cancelled.</short>
</element>
<element name="TCustomDBGrid.StartUpdating">
<short>
Prepares the grid control for updates to its display area.
</short>
<descr>
<p>
<var>StartUpdating</var> is a procedure used to prepare the grid control for
updates to its display area. StartUpdating checks the value from UpdatingData
to see if the procedure has already been called. No actions are performed in
the method when UpdatingData returns <b>True</b>.
</p>
<p>
StartUpdating updates the GridStatus property to include the value
gsUpdatingData. The value in the ControlStyle property is also updated to
include the value csActionClient. Finally, the LockEditor method is called to
prevent changes in the editor control while the update is in progress.
</p>
<p>
StartUpdating and EndUpdating are used in the implementation of the
UpdateData method to prevent multiple calls to UpdateData.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.EndUpdating">
<short>
Restores the status of the control after updating its display area.
</short>
<descr>
<p>
<var>EndUpdating</var> is a procedure used to restore the status of the
control after an update to its display area. EndUpdating ensures that the
value gsUpdatingData is removed from the GridStatus property, and restores
the value in ControlStyle to its value prior to starting the update; the
value csActionClient is removed from the property. The UnLockEditor method is
called to re-enable an editor control in the grid.
</p>
<p>
StartUpdating and EndUpdating are used in the implementation of the
UpdateData method to prevent multiple calls to UpdateData.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.UpdatingData">
<short>
Indicates if UpdateData has already been called for the control.
</short>
<descr>
<p>
UpdatingData is a Boolean function that indicates if the UpdateData method
has already been called for the grid control. UpdatingData returns
<b>True</b> if the GridStatus property contains the value gsUpdatingData. The
GridStatus value is added in the StartUpdating method. UpdatingData prevents
multiple calls to UpdateData.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.UpdatingData.Result">
<short><b>True</b> when UpdateData has been called for the control.</short>
</element>
<element name="TCustomDBGrid.SwapCheckBox">
<short>
Toggles the Boolean value for a check box-style cell in the current column.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.ToggleSelectedRow">
<short>
Toggles the bookmark in SelectedRows for the current grid row.
</short>
<descr>
<p>
<var>ToggleSelectedRow</var> is a procedure used add or remove the bookmark
for the current row in the <var>SelectedRows</var> property.
ToggleSelectedRow calls the <var>SelectRecord</var> method to toggle the
value in SelectRows using its <var>CurrentRowSelected</var> property.
ToggleSelectedRow is used in the <var>KeyDown</var> or <var>MouseDown</var>
methods when <var><b>Ctrl + Multiply</b> (Num Pad *)</var> or <var><b>Ctrl +
MBLeft</b></var> are pressed.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SelectRecord">
<short>
Changes the selection in the SelectedRows property.
</short>
<descr>
<p>
<var>SelectRecord</var> is a procedure used to change the
SelectedRows.CurrentRowSelected property to the specified value. SelectRecord
checks the Options property to see if the value dgMultiSelect is included,
and updates SelectedRows.CurrentRowSelected. No action is performed in the
method if Options does not include the value dgMultiSelect.
</p>
<p>
SelectRecord is used in the implementation of various methods such as:
KeyDown, MouseDown, ToggleSelectedRow, and ClearSelection.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.SelectRecord.AValue">
<short><b>True</b> when the current record should be selected.</short>
</element>
<element name="TCustomDBGrid.GetScrollbarParams">
<short>
Adjusts scroll bars using the record count and the visible rows for the
control.
</short>
<descr>
<p>
<var>GetScrollbarParams</var> is a procedure used to adjust scroll bars using
the record count for the dataset and the number of visible rows for the
control.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.GetScrollbarParams.aRange">
<short>
Returns the maximum value for the scroll range in scroll bar information.
</short>
</element>
<element name="TCustomDBGrid.GetScrollbarParams.aPage">
<short>
Returns the current page represented by the visible rows in the scroll bar.
</short>
</element>
<element name="TCustomDBGrid.GetScrollbarParams.aPos">
<short>
Returns the current scroll bar position.
</short>
</element>
<element name="TCustomDBGrid.CMGetDataLink">
<short>Handles a CM_GETDATALINK control message for the grid.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.CMGetDataLink.Message">
<short>Control message examined and handled in the method.</short>
</element>
<element name="TCustomDBGrid.ClearSelection">
<short>Clears the current multi-selected rows in the grid control.</short>
<descr>
<p>
If the bookmark list in SelectRows is not empty, its Clear method is called
to remove all bookmarked rows. No actions are performed in the method under
the following conditions:
</p>
<ul>
<li>dgPersistentMultiSelect has been included in the Options for the grid
control.</li>
<li>dgMultiSelect has <b>not</b> been included in the Options for the grid
control.</li>
</ul>
<p>
If selCurrent contains <b>True</b>, the current row in the DataSet is
re-selected by making it the current row selection in SelectedRows.
</p>
<p>
ClearSelection is called from the KeyDown method when the next record is made
without pressing the Shift key to extend the current selection(s).
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.SelectedRows"/>
<link id="TCustomDBGrid.Options"/>
<link id="TCustomDBGrid.KeyDown"/>
<link id="TDBGridOptions"/>
<link id="TBookmarkList"/>
</seealso>
</element>
<element name="TCustomDBGrid.ClearSelection.selCurrent">
<short>
<b>True</b> to re-select the current row after any multi-selections have been
cleared.
</short>
</element>
<!-- private -->
<element name="TCustomDBGrid.NeedAutoSizeColumns"/>
<element name="TCustomDBGrid.NeedAutoSizeColumns.Result"/>
<element name="TCustomDBGrid.RenewColWidths"/>
<element name="TCustomDBGrid.InternalAutoSizeColumn"/>
<element name="TCustomDBGrid.InternalAutoSizeColumn.ACol"/>
<element name="TCustomDBGrid.InternalAutoSizeColumn.ACanvas"/>
<element name="TCustomDBGrid.InternalAutoSizeColumn.ADatalinkActive"/>
<element name="TCustomDBGrid.DoHeaderClick"/>
<element name="TCustomDBGrid.DoHeaderClick.Index"/>
<!-- protected -->
<element name="TCustomDBGrid.AddAutomaticColumns">
<short>
Automatically adds a column definition for each Field in the dataset.
</short>
<descr>
<p>
<var>AddAutomaticColumns</var> is a procedure used to automatically add
column definitions for each Field in the DataSet.
</p>
<p>
Please note that AddAutomaticColumns can be performed at run-time only; no
actions are performed in the method at design-time.
</p>
<p>
AddAutomaticColumns requires an active dataset to access the Fields that must
be added to the grid control. No actions are performed if the dataset in
DataLink has not been assigned or marked as Active.
</p>
<p>
AddAutomaticColumns cannot be performed when GridStatus contains either
gsRemovingAutoColumns or gsLoadingGrid. No actions are performed in the
method when these values are included in the GridStatus property.
</p>
<p>
AddAutomaticColumns is enabled by including the value dgeAutoColumns in the
OptionsExtra property. No actions are performed in the method when the
feature has not been enabled in the OptionsExtra property.
</p>
<p>
AddAutomaticColumns uses DataLink to get the Fields for the dataset, and
checks the Columns collection to see if a column already exists for each
Field. If the Field is already in the collection, it is skipped to avoid
duplicate Fields. Missing Fields are added to Columns using its Add method,
and sets the IsAutomaticColumn and Visible properties to <b>True</b> for
each. When missing Fields have been added, the ResetColumnsOrder method in
Columns is called using the coFieldIndexOrder column ordering option.
</p>
<p>
AddAutomaticColumns updates the GridStatus property prior to adding columns
to include the value gsAddingAutoColumns. The value is removed from
GridStatus when adding columns has completed. This prevents the
TDBGridColumns.Add method from removing automatic columns while the add
operation is still active.
</p>
<p>
See RemoveAutomaticColumns and OptionsExtra for information about removing
automatic columns in the Columns collection.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.GridStatus"/>
<link id="TCustomDBGrid.OptionsExtra"/>
</seealso>
</element>
<element name="TCustomDBGrid.AssignTo">
<short>Copies property values to the specified persistent object.</short>
<descr>
<p>
<var>AssignTo</var> is an overridden method in <var>TCustomDBGrid</var> used
to copy property values from the class instance to the persistent object
specified in <var>Dest</var>. It prevents the inherited method from being
called when Dest is a <var>TCustomDBGrid</var> instance. Otherwise, the
inherited method is called.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.AssignTo">TCustomGrid.AssignTo</link>
</seealso>
</element>
<element name="TCustomDBGrid.AssignTo.Dest">
<short>Persistent object where the property values are stored.</short>
</element>
<element name="TCustomDBGrid.AutoAdjustColumn">
<short>
Adjust properties in the specified column to display the longest value.
</short>
<descr>
<p>
<var>AutoAdjustColumn</var> is an overridden method in
<var>TCustomDBGrid</var> used to adjust column properties to accommodate the
largest value in the specified column. It re-implements the method from the
ancestor class.
</p>
<p>
AutoAdjustColumn uses the column definition, or the field from the linked
dataset, to determine the column or field size needed for the data displayed
on the control canvas. A temporary TCanvas instance is created and used to
measure the text width for the column. The calculated width is stored in the
inherited ColWidths property.
</p>
<remark>
Columns which use the ftMemo field type do not display the content for the
memo field <b>unless</b> <var>dgDisplayMemoText</var> has been included in
the <var>Options</var> for the grid control.
</remark>
<p>
AutoAdjustColumn is called from the DblClick method when the values
goColSizing and goDblClickAutoSize have been included in the Options property.
</p>
<p>
Use AutoAdjustColumns to resize all automatically-sized columns in the
control.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.AutoAdjustColumns"/>
<link id="TCustomDBGrid.Columns"/>
<link id="TCustomDBGrid.Options"/>
<link id="#lcl.grids.TCustomGrid.AutoAdjustColumn">TCustomGrid.AutoAdjustColumn</link>
<link id="#lcl.grids.TCustomGrid.ColWidths">TCustomGrid.ColWidths</link>
</seealso>
</element>
<element name="TCustomDBGrid.AutoAdjustColumn.ACol">
<short>Column (or field) number affected in the method.</short>
</element>
<element name="TCustomDBGrid.BeforeMoveSelection">
<short>
Performs actions needed before the selected column in the grid is changed.
</short>
<descr>
<p>
<var>BeforeMoveSelection</var> is an overridden method in
<var>TCustomDbGrid</var> used to perform actions needed before the selected
column in the grid is changed.
</p>
<p>
<var>DCol</var> and <var>DRow</var> contain the column and row number for the
cell selection that will be selected following the selection change.
</p>
<p>
BeforeMoveSelection calls the inherited method on entry to signal the
OnBeforeSelection event handler (when assigned). When DCol is different than
the value in the Col property, the OnColExit event handler is signalled (when
assigned). An internal flag is set to indicate that a column enter event is
pending.
</p>
<p>
BeforeMoveSelection is called from the inherited MoveExtend method.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.BeforeMoveSelection">TCustomGrid.BeforeMoveSelection</link>
</seealso>
</element>
<element name="TCustomDBGrid.BeforeMoveSelection.DCol">
<short>Destination column for the selection change.</short>
</element>
<element name="TCustomDBGrid.BeforeMoveSelection.DRow">
<short>Destination row for the selection change.</short>
</element>
<element name="TCustomDBGrid.BeginLayout">
<short>
<var>BeginLayout</var> starts producing layout changes for the grid control.
</short>
<descr>
<p>
<var>BeginLayout</var> is a procedure which starts producing layout changes
for the grid control. BeginLayout is used along with EndLayout to minimize
the number of times layout changed notification events are triggered by the
control. Layout changes occur when the control enables certain values in its
Options property, when AutoAdjustColumn is called, and when the Columns
collection links to Fields in the associated dataset.
</p>
<p>
BeginLayout increments the LayoutChangedCount variable that tracks the number
of times the method is called for the control. <var>EndLayout</var>
decrements that counter, and when it reaches 0 (zero), the DoLayoutChanged
method is called.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.CellClick">
<short>
<var>CellClick</var> calls the <var>OnCellClick</var> event handler if it is
assigned for this particular cell.
</short>
<descr>
<p>
<var>CellClick</var> calls the <var>OnCellClick</var> event handler if it is
assigned for this particular cell.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.CellClick.aCol">
<short>Column number for the click notification.</short>
</element>
<element name="TCustomDBGrid.CellClick.aRow">
<short>Row number for the click notification.</short>
</element>
<element name="TCustomDBGrid.CheckDisplayMemo">
<short>
Indicates if the field is a Memo that needs to be displayed in the grid.
</short>
<descr>
<p>
<var>CheckDisplayMemo</var> is a <var>Boolean</var> function used to
determine if the specified field is a Memo field that needs to be displayed
in the grid control. The return value is <b>True</b> when the specified field
has the value ftMemo in its DataType property, and the Options property
includes the value dgDisplayMemoText.
</p>
<p>
CheckDisplayMemo is called from various methods which measure or render the
content for the grid, including:
</p>
<ul>
<li>DefaultDrawCell</li>
<li>DefaultDrawColumnCell</li>
<li>DrawColumnText</li>
<li>GetEditText</li>
<li>GetTruncCellHintText</li>
<li>EditorCanAcceptKey</li>
</ul>
</descr>
<seealso>
<link id="TCustomDBGrid.Options"/>
<link id="#fcl.db.TField.DataType">TField.DataType</link>
</seealso>
</element>
<element name="TCustomDBGrid.CheckDisplayMemo.aField">
<short>Field examined in the method.</short>
</element>
<element name="TCustomDBGrid.CheckDisplayMemo.Result">
<short>
<b>True</b> if the field is a memo field type and the display memo text
option is enabled.
</short>
</element>
<element name="TCustomDBGrid.InvalidateSizes">
<short>
Makes column sizes invalid, recalculates column sizes and refreshes the
control.
</short>
<descr>
<p>
<var>InvalidateSizes</var> is a procedure which causes the grid to
recalculate column sizes and to repaint its display area. InvalidateSizes
updates the GridFlags for the control to include the value gfVisualChange.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.ColRowMoved">
<short>
Signals event handlers when a row or a column is moved in the grid control.
</short>
<descr>
<p>
<var>ColRowMoved</var> is an overridden procedure used to signal event
handlers when a row or a column is moved in the grid control. When IsColumn
contains <b>False</b>, the OnRowMoved event handler is signalled (when
assigned). When IsColumn contains <b>True</b>, the OnColumnMoved event
handler is signalled (when assigned) if Columns have not been Enabled in the
grid control. If Columns have been Enabled, the inherited ColRowMoved method
is called.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.ColRowMoved">TCustomGrid.ColRowMoved</link>
</seealso>
</element>
<element name="TCustomDBGrid.ColRowMoved.IsColumn">
<short>
<b>True</b> if a column affected in the method. <b>False</b> if a row is
affected.
</short>
</element>
<element name="TCustomDBGrid.ColRowMoved.FromIndex">
<short>
Original ordinal position for the column or row moved in the method.
</short>
</element>
<element name="TCustomDBGrid.ColRowMoved.ToIndex">
<short>New ordinal position for the column or row moved in the method.</short>
</element>
<element name="TCustomDBGrid.ColumnEditorStyle">
<short>
<var>ColumnEditorStyle</var> gets the button style for the column being
edited.
</short>
<descr>
<p>
<var>ColumnEditorStyle</var> is a <var>TColumnButtonStyle</var> function used
to get the button style for the specified column number or Field in the grid
control. ColumnEditorStyle assumes the default button style is cbsAuto unless
overridden by settings in the Columns collection or by the Field definition
in the dataset.
</p>
<p>
ColumnEditorStyle calls ColumnFromGridColumn to get the TColumn instance for
the specified column number. Its ButtonStyle property is used as the return
value if Columns has been Enabled. Otherwise, DefaultEditorStyle is called
for the specified TField to get the return value for the method.
DefaultEditorStyle will use cbsCheckBoxColumn as the button style when
dgeCheckboxColumn has been included in the OptionsExtra property.
</p>
<p>
ColumnEditorStyle is used in the implementation of various methods including:
CellClick, DefaultDrawCell, DefaultDrawColumnCell, EditorByStyle, KeyDown and
MouseDown.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.ColumnEditorStyle.Result">
<short>Button style for the column or Field.</short>
</element>
<element name="TCustomDBGrid.ColumnEditorStyle.aCol">
<short>Ordinal position for the column or field.</short>
</element>
<element name="TCustomDBGrid.ColumnEditorStyle.F">
<short>TField instance for the specified column number.</short>
</element>
<element name="TCustomDBGrid.CreateColumns">
<short>
Creates the Columns collection for the grid control.
</short>
<descr>
<p>
<var>CreateColumns</var> is an overridden <var>TGridColumns</var> function
used to create the Columns collection for the grid control. In TDBGrid, the
Columns collection is implemented using the TDBGridColumns class type (a
descendant of TGridColumns). CreateColumns creates an instance of
TDBGridColumns which is used as the return value for the method.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.CreateColumns">TCustomGrid.CreateColumns</link>
</seealso>
</element>
<element name="TCustomDBGrid.CreateColumns.Result">
<short>Columns collection for the grid control.</short>
</element>
<element name="TCustomDBGrid.CreateWnd">
<short>
<var>CreateWnd</var> - creates the window adjusts its layout and adds scroll
bars when needed.
</short>
<descr></descr>
<seealso>
<link id="#lcl.controls.TWinControl.CreateWnd">TWinControl.CreateWnd</link>
</seealso>
</element>
<element name="TCustomDBGrid.DefineProperties">
<short>
Re-implements the inherited method to prevent reading or writing unused
properties.
</short>
<descr>
<remark>
<var>DefineProperties</var> has an empty implementation and avoids calling
the inherited DefineProperties method. TCustomGrid defines ColWidths,
RowHeights and Cells properties which do not use the Columns, Datasource, or
linked Dataset available in the data-aware grid control. XML configuration
files are used instead.
</remark>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid">TCustomGrid</link>
</seealso>
</element>
<element name="TCustomDBGrid.DefineProperties.Filer">
<short>Not used in the current implementation.</short>
</element>
<element name="TCustomDBGrid.DefaultDrawCell">
<short>
Default method used to drawing a cell at the specified location.
</short>
<descr>
<p>
<var>DefaultDrawCell</var> is a procedure that provides the default method
for drawing a cell at the specified location using different cell types.
DefaultDrawCell draws the background for the cell with the specified drawing
state. For a cell which appears in a fixed row or column, the text for the
cell is also drawn.
</p>
<p>
When the DataSet for the grid control has rows, the Field for the specified
column is retrieved and the cell is drawn using its column editor style. For
check box columns, the DrawCheckBoxBitmaps is called. For columns with a
button-style editor, the DrawButtonCell method is used. For Fields with a
ftMemo data type, the CheckDisplayMemo method is called to determine whether
the content in the memo or the DisplayText for the column definition is
drawn. Finally, the DrawCellText method is called to draw the specified cell
using its state and value.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.DefaultDrawCell.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDBGrid.DefaultDrawCell.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDBGrid.DefaultDrawCell.aRect">
<short>Display rectangle for the specified cell.</short>
</element>
<element name="TCustomDBGrid.DefaultDrawCell.aState">
<short>Drawing style for the cell background.</short>
</element>
<element name="TCustomDBGrid.DefaultEditorStyle">
<short>Gets the default editor style for the specified field.</short>
<descr>
<p>
<var>DefaultEditorStyle</var> is a <var>TColumnButtonStyle</var> function
used to get the default editor style used for the column with the field
specified in <var>F</var>.
</p>
<p>
The <var>Style</var> argument indicates the preferred editor style, while the
return value contains the realized editor style. When F is a boolean field,
and Style is cbsAuto, the return value is set to cbsCheckBoxColumn when
dgeCheckboxColumn has been included in the Options for the grid control.
</p>
<p>
DefaultEditorStyle is used in the implementation of the ColumnEditorStyle and
TColumn.GetDefaultAlignment methods.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.ColumnEditorStyle"/>
</seealso>
</element>
<element name="TCustomDBGrid.DefaultEditorStyle.Result">
<short>Actual editor style for the column using the specified field.</short>
</element>
<element name="TCustomDBGrid.DefaultEditorStyle.Style">
<short>Preferred editor style for the field.</short>
</element>
<element name="TCustomDBGrid.DefaultEditorStyle.F">
<short>Dataset field for the editor style.</short>
</element>
<element name="TCustomDBGrid.DoCopyToClipboard">
<short>
Copies the field value for the current column and row to the clipboard.
</short>
<descr>
<p>
<var>DoCopyToClipboard</var> is an overridden method in
<var>TCustomDBGrid</var> used to copy the field value for the selected column
and row in the grid to the clipboard. No actions are performed in the method
when the linked dataset is not active.
</p>
<p>
DoCopyToClipboard calls <var>GetFieldFromGridColumn</var> to get the field
definition for the current column in the grid. If the field is not <b>Nil</b>
(unassigned), the String value for the field is stored to the global
<var>Clipboard</var> instance using its <var>AsText</var> method.
</p>
<p>
DoCopyToClipboard re-implements the method from the ancestor class.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.DoExit">
<short>
<var>DoExit</var> closes the editor and the datalink for the control.
</short>
<descr>
<p>
<var>DoExit</var> is an overridden procedure in TCustomDBGrid used to close
the editor and the datalink for the control. A valid dataset must be assigned
in the DataLink property and inserts must be cancellable for the dataset. The
Options property must include the dgCancelOnExit enumeration value for the
grid. If any of these conditions are not met, no actions are performed in the
method on either the dataset or the Field editor.
</p>
<p>
DoExit calls the inherited method to perform any actions implemented in the
ancestor class.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.DoExit">TWinControl.DoExit</link>
</seealso>
</element>
<element name="TCustomDBGrid.DoMouseWheelDown">
<short>
Handles mouse wheel down events in the grid control.
</short>
<descr>
<p>
<var>DoMouseWheelDown</var> is an overridden <var>Boolean</var> function used
to handle mouse wheel down events in the grid control. The return value is
<b>True</b> when the mouse wheel event has been handled in the method.
DoMouseWheelDown signals the OnMouseWheelDown event handler when it has been
assigned to handle the mouse event. If OnMouseWheelDown cannot handle the
mouse event, and the DataLink is marked as Active, DataLink calls its MoveBy
method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.DoMouseWheelDown">TControl.DoMouseWheelDown</link>
</seealso>
</element>
<element name="TCustomDBGrid.DoMouseWheelDown.Result">
<short><b>True</b> when the mouse event is handled in the method.</short>
</element>
<element name="TCustomDBGrid.DoMouseWheelDown.Shift">
<short>Shift state for the mouse wheel event.</short>
</element>
<element name="TCustomDBGrid.DoMouseWheelDown.MousePos">
<short>Location of the mouse wheel event.</short>
</element>
<element name="TCustomDBGrid.DoMouseWheelUp">
<short>
Handles a mouse wheel up event in the grid control.
</short>
<descr>
<p>
<var>DoMouseWheelUp</var> is an overridden <var>Boolean</var> function used
to handle mouse wheel up events in the grid control. The return value is
<b>True</b> when the mouse wheel event has been handled in the method.
DoMouseWheelUp signals the OnMouseWheelUp event handler when it has been
assigned to handle the mouse event. If OnMouseWheelUp cannot handle the mouse
event, and the DataLink is marked as Active, DataLink calls its MoveBy method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.DoMouseWheelUp.Result">
<short><b>True</b> when the mouse event is handled in the method.</short>
</element>
<element name="TCustomDBGrid.DoMouseWheelUp.Shift">
<short>Shift state for the mouse wheel event.</short>
</element>
<element name="TCustomDBGrid.DoMouseWheelUp.MousePos">
<short>Location of the mouse wheel event.</short>
</element>
<element name="TCustomDBGrid.DoOnChangeBounds">
<short>
Calls the inherited method and adjusts the size and layout for the control
when needed.
</short>
<descr></descr>
<seealso>
<link id="#lcl.controls.TControl.DoOnChangeBounds">TControl.DoOnChangeBounds</link>
</seealso>
</element>
<element name="TCustomDBGrid.DoPrepareCanvas">
<short>
Prepares the canvas and signals the OnPrepareCanvas event handler.
</short>
<descr>
<p>
<var>DoPrepareCanvas</var> is an overridden procedure used to prepare the
Canvas to draw a cell in the grid control. DoPrepareCanvas applies to data
cells and performs no actions in the method when aRow refers to a fixed row
in the control. In addition, DoPrepareCanvas applies only when DefaultDrawing
contains <b>False</b>. No actions are performed in the method when
DefaultDrawing is enabled.
</p>
<p>
DoPrepareCanvas calls GetSelectedState to determine if the Canvas is updated
with brush and font colors used to draw in the specified state.
DoPrepareCanvas signals the OnPrepareCanvas event handler (when assigned)
using the specified column number and drawing state.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.DoPrepareCanvas">TCustomGrid.DoPrepareCanvas</link>
</seealso>
</element>
<element name="TCustomDBGrid.DoPrepareCanvas.aCol">
<short>Column number for the operation.</short>
</element>
<element name="TCustomDBGrid.DoPrepareCanvas.aRow">
<short>Row number for the operation.</short>
</element>
<element name="TCustomDBGrid.DoPrepareCanvas.aState">
<short>Drawing state for the operation.</short>
</element>
<element name="TCustomDBGrid.DoLoadColumn">
<short>Loads a column definition from an XML configuration file.</short>
<descr>
<p>
<var>DoLoadColumn</var> is an overridden method in <var>TCustomDBGrid</var>
used to load the <var>TGridColumn</var> definition for the specified column
from the XML configuration file in <var>aCfg</var>. Values for the
<var>FieldName</var> and <var>DisplayFormat</var> properties are read from
the XML file and stored in <var>aColumn</var>.
</p>
<p>
Calls the inherited method to signal the <var>OnLoadColumn</var> event
handler (when assigned).
</p>
<p>
DoLoadColumn is called from the <var>LoadColumns</var> and
<var>LoadContent</var> methods in the ancestor class.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.DoLoadColumn.Sender">
<short>Object instance with the Grid control.</short>
</element>
<element name="TCustomDBGrid.DoLoadColumn.AColumn">
<short>TGridColumn instance loaded in the method.</short>
</element>
<element name="TCustomDBGrid.DoLoadColumn.AColIndex">
<short>Position in the grid for the column definition.</short>
</element>
<element name="TCustomDBGrid.DoLoadColumn.ACfg">
<short>XML configuration file with the definition for the column.</short>
</element>
<element name="TCustomDBGrid.DoLoadColumn.AVersion">
<short>
Version number for the XML storage format in the configuration file.
</short>
</element>
<element name="TCustomDBGrid.DoLoadColumn.APath">
<short>Path to the XML node with the data for the column.</short>
</element>
<element name="TCustomDBGrid.DoSaveColumn">
<short>
Saves the specified column definition to the specified XML configuration file.
</short>
<descr>
<p>
<var>DoSaveColumn</var> is an overridden method in <var>TCustomDBGrid</var>.
It ensures that AColumn is cast to the TColumn type used in the Columns
collection, and the FieldName and DisplayFormat properties for the column are
written to the XML configuration file. It calls the inherited method to
signal the OnSaveColumn event handler (when assigned).
</p>
<p>
DoSaveColumn is called from the SaveContent method in the TCustomGrid
ancestor.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Columns"/>
<link id="TColumn.FieldName"/>
<link id="TColumn.DisplayFormat"/>
<link id="#lcl.grids.TCustomGrid.DoSaveColumn">TCustomGrid.DoSaveColumn</link>
<link id="#lcl.grids.TCustomGrid.SaveContent">TCustomGrid.SaveContent</link>
</seealso>
</element>
<element name="TCustomDBGrid.DoSaveColumn.Sender">
<short>Grid control with the column information stored in the method.</short>
</element>
<element name="TCustomDBGrid.DoSaveColumn.AColumn">
<short>
TGridColumn instance with the columnn information stored in the method.
</short>
</element>
<element name="TCustomDBGrid.DoSaveColumn.AColIndex">
<short>Ordinal position for the column in the Columns collection.</short>
</element>
<element name="TCustomDBGrid.DoSaveColumn.ACfg">
<short>XML configuration file where the column information is stored.</short>
</element>
<element name="TCustomDBGrid.DoSaveColumn.AVersion">
<short>
Value for the GRIDFILEVERSION constant used in the implementation.
</short>
</element>
<element name="TCustomDBGrid.DoSaveColumn.APath">
<short>
XPATH-like path where the column information is stored in the XML document.
</short>
</element>
<element name="TCustomDBGrid.DrawAllRows">
<short>
Draws all data rows in grid control.
</short>
<descr>
<p>
DrawAllRows is an overridden procedure used to draw all data rows for the
control. DrawAllRows checks the DataLink property to determine if a DataSet
is available for the operation. When DataLink is marked as Active, its
ActiveRecord is used to reposition the DataSet after the drawing operation is
completed. DrawAllRows calls the inherited method, and restores the position
of the DataSet prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.DrawAllRows">TCustomGrid.DrawAllRows</link>
</seealso>
</element>
<element name="TCustomDBGrid.DrawFocusRect">
<short>
Draws the current selection in the grid in a focused state.
</short>
<descr>
<p>
<var>DrawFocusRect</var> is an overridden procedure used to draw the current
selection in the grid in a focused state.
</p>
<p>
The grid control must have focus before the current selection can be drawn.
In addition the DataLink for the control must refer to an active dataset.
DrawFocusRect checks the Options property to ensure that
dgAlwaysShowSelection has been included for the control. Finally
DefaultDrawing must be enabled to allow drawing of the focus rectangle using
the rubber band style on the Canvas for the control.
</p>
<p>
If any of the previous conditions are not met, no actions are performed in
the method.
</p>
<p>
DrawFocusRect calls CalcFocusRect to get the bounds for the focus rectangle
adjusted for optional grid lines. The DrawRubberRect method is called to
render the focus rectangle with the needed borders using the FocusColor for
the control.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.DrawFocusRect">TCustomGrid.DrawFocusRect</link>
<link id="#lcl.grids.TCustomGrid.CalcFocusRect">TCustomGrid.CalcFocusRect</link>
<link id="#lcl.grids.TCustomGrid.FocusColor">TCustomGrid.FocusColor</link>
</seealso>
</element>
<element name="TCustomDBGrid.DrawFocusRect.aCol">
<short>Column number for the cell drawn with the focus rectangle.</short>
</element>
<element name="TCustomDBGrid.DrawFocusRect.aRow">
<short>Row number for the cell drawn with the focus rectangle.</short>
</element>
<element name="TCustomDBGrid.DrawFocusRect.ARect">
<short>Rectangle for the focus "rubberband" calculated in the method.</short>
</element>
<element name="TCustomDBGrid.DrawRow">
<short>Draws the specified row in the grid control.</short>
<descr>
<p>
<var>DrawRow</var> is an overridden procedure used to draw the specified row
number in the grid control.
</p>
<p>
ARow contains the row number to be drawn and refers to an ordinal position
relative to the FixedRows for the control. When ARows contains a value that
would be in the FixedRows the state flags that track drawing an active record
or multi-selection are reset. DrawRow also requires that DataLink refer to an
active dataset. No actions are performed in the method if these conditions
are not satisfied.
</p>
<p>
DrawRow sets the active record in DataLink for selected rows in the control
and updates the DrawingActiveRecord and DrawingMultiSelRecord flags as
needed. The Options property must include the value dgMultiSelect to enable
drawing of multiple selections in the control.
</p>
<p>
DrawRow calls the inherited method to perform any actions implemented in the
ancestor class.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.DrawRow">TCustomGrid.DrawRow</link>
</seealso>
</element>
<element name="TCustomDBGrid.DrawCell">
<short>
DrawCell renders the specified grid cell using the specified drawing state.
</short>
<descr>
<p>
<var>DrawCell</var> is an overridden method in <var>TCustomDBGrid</var>. It
re-implements the method introduced in the ancestor class, and does <b>not</b>
call the inherited method.
</p>
<p>
DrawCell is used to render a cell at the specified coordinates with the
specified drawing state. It calls PrepareCanvas to update the settings in the
control Canvas to use the Color, Brush color and style, and Font typeface and
style properties needed for the control.
</p>
<p>
DrawCell calls DefaultDrawCell when DefaultDrawing is enabled for the grid
control. DrawCellBackground is called when DefaultDrawing has not been
enabled.
</p>
<p>
The DrawCellGrid method is called to render the separator lines for the grid
control prior to exit.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.DrawCell.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDBGrid.DrawCell.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDBGrid.DrawCell.ARect">
<short>Rectangle where the cell is drawn.</short>
</element>
<element name="TCustomDBGrid.DrawCell.AState">
<short>Drawing state for the cell.</short>
</element>
<element name="TCustomDBGrid.DrawCellBackground">
<short>Draws the background for the cell at the specified coordinates.</short>
<descr>
<p>
<var>DrawCellBackground</var> uses the value in aState and the TitleStyle
property to determine the drawing method for the cell. Fixed cells using the
native title style are drawn by calling the DrawThemedCell method. Otherwise,
the FillRect method in the control Canvas is called to draw the cell
background.
</p>
<p>
DrawCellBackground is called from the DrawCell method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.DrawCellBackground.ACol">
<short>Column number for the cell drawn in the method.</short>
</element>
<element name="TCustomDBGrid.DrawCellBackground.ARow">
<short>Row number for the cell drawn in the method.</short>
</element>
<element name="TCustomDBGrid.DrawCellBackground.ARect">
<short>Display rectangle for the specified cell.</short>
</element>
<element name="TCustomDBGrid.DrawCellBackground.AState">
<short>Drawing state for the specified cell.</short>
</element>
<element name="TCustomDBGrid.DrawCheckboxBitmaps">
<short>
Draws a check box bitmap for the specified Boolean column.
</short>
<descr>
<p>
<var>DrawCheckboxBitmaps</var> is a procedure used to draw the check box
bitmap for the specified column. DrawCheckboxBitmaps draws the check box
bitmap only when the editor for the column is not visible; otherwise, no
actions are performed in the method.
</p>
<p>
DrawCheckboxBitmaps examines the specified Field argument to ensure that it
uses a Boolean data type. If the Field IsNull, the value cbGrayed is assigned
to the aState argument. Otherwise, the TField.AsBoolean method is used to
determine if aState is set to cbChecked or cbUnChecked. For Fields that do
not use ftBoolean in the data type, the TField.AsString method is used to
determine if the Field matches the value in TColumn.ValueChecked or
TColumn.ValueUnChecked.
</p>
<p>
DrawCheckboxBitmaps signals the DrawCheckboxBitmaps event handler when it has
been assigned in the control.
</p>
<p>
DrawCheckboxBitmaps calls the DrawGridCheckboxBitmaps method to render the
check box bitmap with the necessary drawing state.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.DrawCheckboxBitmaps.aCol">
<short>Column number to draw.</short>
</element>
<element name="TCustomDBGrid.DrawCheckboxBitmaps.aRect">
<short>Canvas rectangle for the operation.</short>
</element>
<element name="TCustomDBGrid.DrawCheckboxBitmaps.F">
<short>Field with data for the column.</short>
</element>
<element name="TCustomDBGrid.DrawFixedText">
<short>
Draws the fixed text at the specified row and column numbers.
</short>
<descr>
<p>
<var>DrawFixedText</var> is a procedure used to draw a fixed (or caption)
cell at the specified row and column numbers. DrawFixedText calls the
DrawIndicator method for the active record when aCol contains 0 (zero) and
Options includes the value dgIndicator. Otherwise, the DrawColumnText method
is called using the arguments passed to the method.
</p>
<p>
DrawFixedText is used in the implementation for the DefaultDrawCell method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.DrawFixedText.aCol">
<short>Column number to draw.</short>
</element>
<element name="TCustomDBGrid.DrawFixedText.aRow">
<short>Row number to draw.</short>
</element>
<element name="TCustomDBGrid.DrawFixedText.aRect">
<short>Canvas rectangle for the drawing operation.</short>
</element>
<element name="TCustomDBGrid.DrawFixedText.aState">
<short>Drawing state for the operation.</short>
</element>
<element name="TCustomDBGrid.DrawColumnText">
<short>Draws the text for the cell at the specified coordinates.</short>
<descr>
<p>
<var>DrawColumnText</var> is an overridden method in <var>TCustomDBGrid</var>
used to draw the text for the cell at the position in ACol and ARow.
</p>
<p>
If the cell is a fixed column title, the inherited method is called to render
the image and /or text for the column header.
</p>
<p>
For data cells,the field type for the cell is checked. For a Memo field, the
content in the field is used when dgDisplayMemoText has been included in the
Options property. Otherwise, the DisplayText for the field is used.
</p>
<p>
The DrawCellText method is called to render the text value with the drawing
state in aState.
</p>
<p>
DrawColumnText is called from the DrawFixedText and DefaultDrawCell methods.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.DrawColumnText.ACol">
<short>Column number for the cell drawn in the method.</short>
</element>
<element name="TCustomDBGrid.DrawColumnText.ARow">
<short>Row number for the cell drawn in the method.</short>
</element>
<element name="TCustomDBGrid.DrawColumnText.ARect">
<short>Display rectangle for the cell.</short>
</element>
<element name="TCustomDBGrid.DrawColumnText.AState">
<short>Grid drawing state for the cell.</short>
</element>
<element name="TCustomDBGrid.DrawIndicator">
<short>
Draws the row indicator for the grid control with cues for dataset and
multi-selection state.
</short>
<descr>
<p>
<var>DrawIndicator</var> is a method used to draw the row indicator for the
grid control. The row indicator is a marker which identifies the current row
selected in the grid control. It may also indicate the current dataset and
multi-selection states as passed in the Opt and MultiSel arguments.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.DrawIndicator.ACanvas">
<short>Canvas for the control where the row indicator is drawn.</short>
</element>
<element name="TCustomDBGrid.DrawIndicator.R">
<short>Cell rectangle where the row indicator is drawn.</short>
</element>
<element name="TCustomDBGrid.DrawIndicator.Opt">
<short>
Current TDataSetState value representing the state for the dataset.
</short>
</element>
<element name="TCustomDBGrid.DrawIndicator.MultiSel">
<short><b>True</b> if multi-selection is enabled for the grid control.</short>
</element>
<element name="TCustomDBGrid.EditingColumn">
<short>
<var>EditingColumn</var> sets or resets the column being edited in the
control.
</short>
<descr>
<p>
<var>EditingColumn</var> is a procedure used to set or reset the column being
edited in the control .
</p>
<p>
aCol indicates the ordinal column number and is stored internally for use in
other methods of the control. Ok indicates that editing is active when set
and causes the DataLink to set its Modified flag to <b>True</b>. When Ok
contains <b>False</b> the internal column number is reset to its default
value indicating that no column is currently being edited.
</p>
<p>
EditingColumn is used in the implementation of other methods in the grid
control such as UpdateData, EditorCancelEditing, EditorIsReadOnly, and DoExit.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.UpdateData">TCustomDBGrid.UpdateData</link>
<link id="TCustomDBGrid.EditorCancelEditing">TCustomDBGrid.EditorCancelEditing</link>
<link id="TCustomDBGrid.EditorIsReadOnly">TCustomDBGrid.EditorIsReadOnly</link>
<link id="TCustomDBGrid.DoExit">TCustomDBGrid.DoExit</link>
</seealso>
</element>
<element name="TCustomDBGrid.EditingColumn.aCol">
<short>
Ordinal column number for the column with the active editor control.
</short>
</element>
<element name="TCustomDBGrid.EditingColumn.Ok">
<short>
<b>True</b> if the column number is invalid and should be reset to the
uninitialized value (-1).
</short>
</element>
<element name="TCustomDBGrid.EditorCancelEditing">
<short>
<var>EditorCancelEditing</var> cancels pending changes and disables the
editor.
</short>
<descr>
<p>
<var>EditorCancelEditing</var> is a procedure used to cancel pending changes
and to halt the editing process.
</p>
<p>
EditorCancelEditing calls the EditingColumn method to disable the editor in
the currently selected cell for the control. The EditorMode property is
cleared when set, but is restored if the Options property includes the value
dgAlwaysShowEditor.
</p>
<p>
EditorCancelEditing is used in the implementation of methods like DoOperation
MoveSel and MouseDown.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.EditorDoGetValue">
<short>
<var>EditorDoGetValue</var> gets the value used in the editor for the control.
</short>
<descr>
<p>
<var>EditorDoGetValue</var> is an overridden procedure used to get the value
used in the editor for the control. EditorDoGetValue calls the inherited
EditorDoGetValue method. UpdateData is called to retrieve the value for the
editor from its column in the underlying dataset.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.EditorDoGetValue">TCustomGrid.EditorDoGetValue</link>
</seealso>
</element>
<element name="TCustomDBGrid.EditorCanAcceptKey">
<short>
<var>EditorCanAcceptKey</var> determines if the specified character can be
applied to the Field for the editor.
</short>
<descr>
<p>
<var>EditorCanAcceptKey</var> is an overridden Boolean function which
determines if the cell editor can accept the character specified in
<var>ch</var>. EditorCanAcceptKey requires that the linked dataset be active
to access the SelectedField for the control. The Field cannot be an
AutoIncrement, Lookup, Calculated, or Blob Field type. The return value is
<b>False</b> if any of these conditions are not satisfied.
</p>
<p>
EditorCanAcceptKey calls the IsValidChar routine to determine if the
UTF8-encoded value in ch can be applied to the dataset for the control.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.EditorCanAcceptKey">TCustomGrid.EditorCanAcceptKey</link>
</seealso>
</element>
<element name="TCustomDBGrid.EditorCanAcceptKey.ch">
<short>Key to examine in the method.</short>
</element>
<element name="TCustomDBGrid.EditorCanAcceptKey.Result">
<short><b>True</b> when the character can be applied to the field.</short>
</element>
<element name="TCustomDBGrid.EditorIsReadOnly">
<short>
<var>EditorIsReadOnly</var> determines if the editor can be enabled for the
selected cell in the control.
</short>
<descr>
<p>
<var>EditorIsReadOnly</var> is a Boolean function used to determine if the
editor can be enabled for the selected cell in the control.
</p>
<p>
EditorIsReadOnly calls the inherited method to ensure that requirements from
the ancestor class are respected. If the ancestor class returns <b>True</b>
no actions are performed in the method.
</p>
<p>
EditorIsReadOnly locates the TField used to store data for the selected cell,
and calls its CanModify method to determine if the Field can be modified.
Additional logic is applied for lookup Fields; the TField.KeyFields for the
Field are also examined to determine if any of them are marked as read-only.
</p>
<p>
EditorIsReadOnly ensures the dataset in DataLink is in edit mode. The
GridStatus property is updated to include gsStartEditing prior to changing
the dataset state, and removed from GridStatus after the dataset state has
changed.
</p>
<p>
EditorIsReadOnly calls the EditingColumn method to synchronize the cell
editor state to the value returned by the method.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.EditorIsReadOnly">TCustomGrid.EditorIsReadOnly</link>
</seealso>
</element>
<element name="TCustomDBGrid.EditorIsReadOnly.Result">
<short><b>True</b> when an editor cannot modify the select cell.</short>
</element>
<element name="TCustomDBGrid.EditorTextChanged">
<short>Applies a changed value from a cell Editor to the grid control.</short>
<descr>
<p>
<var>EditorTextChanged</var> is an overridden method in
<var>TCustomDBGrid</var>. It re-implements the method from the ancestor
class, and does not call the inherited method.
</p>
<p>
EditorTextChanged is used to apply a cell value which was modified in the
Editor for the control to the field with the value for the cell. The modified
value is stored in a temporary buffer by calling SetEditText, and is
eventually applied to the database field in the UpdateData method.
</p>
<p>
EditorTextChanged is called from methods in cell editor classes, like
TStringCellEditor and TPickListCellEditor, when their Change or Select
methods are executed.
</p>
<p>
The cell value is not updated when the grid control or the cell Editor has
its ReadOnly property set to <b>True</b>.
</p>
<p>
EditorTextChanged calls the EditingColumn method prior to exit to update both
the column number changed in the grid and the Modified property in the
DataLink for the control.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.EditorIsReadOnly"/>
<link id="TCustomDBGrid.SetEditText"/>
<link id="TCustomDBGrid.EditingColumn"/>
<link id="TCustomDBGrid.UpdateData"/>
</seealso>
</element>
<element name="TCustomDBGrid.EditorTextChanged.ACol">
<short>Column number for the cell value applied in the method.</short>
</element>
<element name="TCustomDBGrid.EditorTextChanged.ARow">
<short>Row number for the cell value applied in the method.</short>
</element>
<element name="TCustomDBGrid.EditorTextChanged.AText">
<short>Text applied to the specified cell in the grid control.</short>
</element>
<element name="TCustomDBGrid.EndLayout">
<short>
<var>EndLayout</var> finishes layout changes for the control.
</short>
<descr>
<p>
<var>EndLayout</var> is a procedure used along with BeginLayout to minimize
the number of times layout changed notification events are triggered by the
control. Layout changes occur when the control enables certain values in its
Options property when AutoAdjustColumn is called and when the Columns
collection links to Fields in the associated dataset.
</p>
<p>
The grid maintains an internal counter that tracks the number of times
BeginLayout has been called to start a layout change for the control.
EndLayout decrements that counter, and when it reaches 0 (zero), the
private DoLayoutChanged method is called; scroll bar information is also
updated in this method.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.BeginLayout"/>
<link id="TCustomDBGrid.LayoutChanged"/>
<link id="TCustomDBGrid.Options"/>
<link id="TCustomDBGrid.AutoAdjustColumn"/>
<link id="TDBGridColumns.LinkFields"/>
<link id="TDBGridColumns.Update"/>
</seealso>
</element>
<element name="TCustomDBGrid.FieldIndexFromGridColumn">
<short>
<var>FieldIndexFromGridColumn</var> returns the index for the database Field
corresponding to the stated grid column.
</short>
<descr>
<p>
<var>FieldIndexFromGridColumn</var> returns the index for the database Field
corresponding to the stated grid column.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.FieldIndexFromGridColumn.Result">
<short>Position of the field for the specified column.</short>
</element>
<element name="TCustomDBGrid.FieldIndexFromGridColumn.Column">
<short>Column to locate in the fields for the control.</short>
</element>
<element name="TCustomDBGrid.FirstGridColumn">
<short>
Gets the position for the first column in the grid control after the optional
row indicator column.
</short>
<descr>
<p>
The return value is <b>1</b> when dgIndicator has been included in the
Options for the grid control. Otherwise, the return value is <b>0</b>.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Options"/>
<link id="TDBGridOptions"/>
<link id="TDBGridOption"/>
</seealso>
</element>
<element name="TCustomDBGrid.FirstGridColumn.Result">
<short>Ordinal position for the first data column in the grid.</short>
</element>
<element name="TCustomDBGrid.GetBufferCount">
<short>
Gets the number of rows to buffer in the grid control.
</short>
<descr>
<p>
<var>GetBufferCount</var> is a virtual Integer function used to get the
number of rows to buffer for display in the grid control. The return value
contains the number of rows that can be displayed using the DefaultRowHeight
for the control. The return value is decreased by 1 when column titles are
enabled in the Options property with the dgTitles enumeration value.
</p>
<p>
GetBufferCount is called from the UpdateBufferCount method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetBufferCount.Result">
<short>Number of data rows visible in the grid control.</short>
</element>
<element name="TCustomDBGrid.GetCellHintText">
<short>Gets the hint text for a data cell in the grid control.</short>
<descr>
<p>
<var>GetCellHintText</var> is an overridden method in
<var>TCustomDBGrid</var>. It re-implements the method from the ancestor class
to ignore fixed title cells when getting the hint text. The OnGetCellHint
event handler is signalled (when assigned) to get the cell hint text used in
the return value.
</p>
<p>
GetCellHintText does <b>not</b> call the inherited method.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.GetCellHintText.Result">
<short>Hint text for the specified cell.</short>
</element>
<element name="TCustomDBGrid.GetCellHintText.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDBGrid.GetCellHintText.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnAlignment">
<short>
Gets the default alignment for the column.
</short>
<descr>
<p>
<var>GetDefaultColumnAlignment</var> is an overridden <var>TAlignment</var>
function used to get the default alignment for data at the specified column
number. GetDefaultColumnAlignment gets the TField for the specified column
when assigned, and uses its Alignment property as the return value for the
method. The value taLeftJustify is used when a TField cannot be found for the
specified column number.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetDefaultColumnAlignment.Result">
<short>Default alignment for the column.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnAlignment.Column">
<short>Column number to use from the dataset.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnWidth">
<short>
Gets the default width for the specified column.
</short>
<descr>
<p>
<var>GetDefaultColumnWidth</var> is an overridden <var>Integer</var> function
used to get the default width for the specified column number.
GetDefaultColumnWidth calls the DefaultFieldColWidth method for the specified
column. The return value is the width of the column calculate using either
the display name or the display width for the TField in the column.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetDefaultColumnWidth.Result">
<short>Default width of the column.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnWidth.Column">
<short>Column number to use for the calculation.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnReadOnly">
<short>
Gets the default ReadOnlyvalue for the specified column.
</short>
<descr>
<p>
<var>GetDefaultColumnReadOnly</var> is an overridden <var>Boolean</var>
function used to get the ReadOnly value for the grid control.
GetDefaultColumnReadOnly determines the effective read only status for the
control using the ReadOnly property, as well as the DataLink property and the
TField used for the specified column.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetDefaultColumnReadOnly.Result">
<short><b>True</b> when the column cannot be modified.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnReadOnly.Column">
<short>Column number to examine.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnTitle">
<short>
Gets the default title displayed for the specified column.
</short>
<descr>
<p>
<var>GetDefaultColumnTitle</var> is an overridden <var>String</var> function
used to get the default title displayed for the specified column number.
GetDefaultColumnTitle gets the TField used for the column (when available)
and uses its DisplayName as the return value for the method. The return value
is an empty String ('') when a TField instance is not available for the
specified column.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetDefaultColumnTitle.Result">
<short>Default title for the column.</short>
</element>
<element name="TCustomDBGrid.GetDefaultColumnTitle.Column">
<short>Column number to locate in the Fields for the grid control.</short>
</element>
<element name="TCustomDBGrid.GetDefaultRowHeight">
<short>
Get the default row height for records displayed in the grid.
</short>
<descr>
<p>
<var>GetDefaultRowHeight</var> is an overridden <var>Integer</var> function
used to get the default row height for records displayed in the grid control.
GetDefaultRowHeight calls the inherited GetDefaultRowHeight method to get the
return value for the method. The calculated row height is decreased by 2
pixels to allow space for borders on the editors overlaid onto the grid
control.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.GetDefaultRowHeight">TCustomGrid.GetDefaultRowHeight</link>
</seealso>
</element>
<element name="TCustomDBGrid.GetDefaultRowHeight.Result">
<short>Default height for records displayed in the control.</short>
</element>
<element name="TCustomDBGrid.GetDsFieldFromGridColumn">
<short>
<var>GetDsFieldFromGridColumn</var> returns the identity of the dataset Field
corresponding to the nominated grid column.
</short>
<descr>
<p>
<var>GetDsFieldFromGridColumn</var> returns the identity of the dataset Field
corresponding to the nominated grid column.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetDsFieldFromGridColumn.Result">
<short>Field to use for the specified column.</short>
</element>
<element name="TCustomDBGrid.GetDsFieldFromGridColumn.Column">
<short>Column with the field to locate in the method.</short>
</element>
<element name="TCustomDBGrid.GetEditMask">
<short>
<var>GetEditMask</var> gets the EditMask for the Field at the specified Row
and Column.
</short>
<descr>
<p>
<var>GetEditMask</var> is an overridden <var>String</var> function used to
get the EditMask for the TField that reads and writes data for specified Row
and Column.
</p>
<p>
The linked dataset for the grid control must be active to access the Field
definition at the specified column number. GetEditMask calls the
GetFieldFromGridColumn method to get the TField instance with the EditMask
for the column.
</p>
<p>
The return value can contain an empty string ('') is the dataset is not
active, or a Field cannot be located for the specified column, or the
EditMask has not been assigned in the Field definition.
</p>
<p>
GetEditMask signals the OnFieldEditMask event handler when it has been
assigned for the control. Use OnFieldEditMask to return a user-specified
value for the EditMask.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.GetEditMask">TCustomGrid.GetEditMask</link>
</seealso>
</element>
<element name="TCustomDBGrid.GetEditMask.Result">
<short>Edit mask for the specified cell.</short>
</element>
<element name="TCustomDBGrid.GetEditMask.aCol">
<short>Column in the grid.</short>
</element>
<element name="TCustomDBGrid.GetEditMask.aRow">
<short>Row in the grid.</short>
</element>
<element name="TCustomDBGrid.GetEditText">
<short>
<var>GetEditText</var> gets the Text value for the specified Field.
</short>
<descr>
<p>
<var>GetEditText</var> is an overridden <var>String</var> function used to
get the Text value for the Field at the specified Row and Column.
</p>
<p>
GetEditText requires that the linked dataset for the control be active to
access its Field definitions. GetEditText calls the GetFieldFromGridColumn
method to get the TField instance that provides the textual representation of
the value for the Field. GetEditText calls the CheckDisplayMemo method to
determine if a Field with the ftMemo data type displays its content or the
string literal in its Text property <var>'(Memo)'</var>.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetEditText.Result">
<short>Text value displayed for the specified cell.</short>
</element>
<element name="TCustomDBGrid.GetEditText.aCol">
<short>Column in the grid`</short>
</element>
<element name="TCustomDBGrid.GetEditText.aRow">
<short>Row in the grid.</short>
</element>
<element name="TCustomDBGrid.GetFieldFromGridColumn">
<short>
<var>GetFieldFromGridColumn</var> obtain the Field either from a Db column or
directly from dataset Fields.
</short>
<descr>
<p>
<var>GetFieldFromGridColumn</var> obtain the Field either from a Db column or
directly from dataset Fields.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetFieldFromGridColumn.Result">
<short>Field for the specified column.</short>
</element>
<element name="TCustomDBGrid.GetFieldFromGridColumn.Column">
<short>Column to locate in the method.</short>
</element>
<element name="TCustomDBGrid.GetGridColumnFromField">
<short>
<var>GetGridColumnFromField</var> - gets the corresponding grid column for
the given Field.
</short>
<descr>
<p>
<var>GetGridColumnFromField</var> - gets the corresponding grid column for
the given Field.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetGridColumnFromField.Result">
<short>Column for the specified field.</short>
</element>
<element name="TCustomDBGrid.GetGridColumnFromField.F">
<short>Field to locate in the grid columns.</short>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox">
<short>
Gets the bitmap displayed for a check box at the specified location.
</short>
<descr>
<p>
<var>GetImageForCheckBox</var> is an overridden <var>TBitmap</var> function
used to get the bitmap displayed for a check box at the specified location in
the grid control. GetImageForCheckBox calls the inherited GetImageForCheckBox
method using the passed arguments to get the return value.
GetImageForCheckBox signals the OnUserCheckboxBitmap event handler when it
has been assigned in the control to allow overriding the TBitmap used for the
desired TCheckboxState.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox.Result">
<short>Bitmap to display for the check box column.</short>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox.CheckBoxView">
<short>Check box state for the column.</short>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox.ImageList">
<short>Images for the check box states.</short>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox.ImageIndex">
<short>Ordinal position for the image.</short>
</element>
<element name="TCustomDBGrid.GetImageForCheckBox.Bitmap">
<short>Bitmap for the check box.</short>
</element>
<element name="TCustomDBGrid.GetIsCellSelected">
<short>
Determines if the cell at the specified location is currently selected.
</short>
<descr>
<p>
<var>GetIsCellSelected</var> is an overridden <var>Boolean</var> function
used to determine if the cell at the specified location is currently
selected. GetIsCellSelected calls the inherited method to get the return
value, and also examines the value in DrawingMultiSelRecord. The return value
is <b>True</b> when the cell is either selected or multi-selected (when
enabled).
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.GetIsCellSelected">TCustomGrid.GetIsCellSelected</link>
</seealso>
</element>
<element name="TCustomDBGrid.GetIsCellSelected.Result">
<short>
<b>True</b> when the specified cell is selected or multi-selected.
</short>
</element>
<element name="TCustomDBGrid.GetIsCellSelected.aCol">
<short>Column number to examine.</short>
</element>
<element name="TCustomDBGrid.GetIsCellSelected.aRow">
<short>Row number to examine.</short>
</element>
<element name="TCustomDBGrid.GetIsCellTitle">
<short>
Determines whether the specified cell is a fixed title cell for the grid
control.
</short>
<descr>
<p>
<var>GetIsCellTitle</var> is an overridden method in
<var>TCustomDBGrid</var>. It re-implements the method from the ancestor class
to ensure that the Columns collection has been enabled for the control, and
that the specified row number is in the fixed rows for the control. The
return is <b>False</b> if Columns.Enabled is <b>False</b>, FixedRows contains
0, or ARow has a value other than 0.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.GetIsCellTitle.Result">
<short>
<b>True</b> if the specified column and row numbers are for a fixed title
cell in the grid.
</short>
</element>
<element name="TCustomDBGrid.GetIsCellTitle.ACol">
<short>Column number for the cell examine in the method.</short>
</element>
<element name="TCustomDBGrid.GetIsCellTitle.ARow">
<short>Row number for the cell examine in the method.</short>
</element>
<element name="TCustomDBGrid.GetSelectedState">
<short>
Determines if a selection is available using the Focus and Options properties
for the control.
</short>
<descr>
<p>
<var>GetSelectedState</var> is an overridden method in
<var>TCustomDBGrid</var>, and calls the inherited method on entry to get the
value used in the IsSelected argument. It extends the inherited method to
change IsSelected to <b>False</b> if the control is not Focused or
dgAlwaysShowSelection has not been included in the Options for the grid
control.
</p>
<p>
See TCustomGrid.GetSelectedState for the actions performed in the ancestor
class.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Options"/>
<link id="#lcl.grids.TCustomGrid.GetSelectedState">TCustomGrid.GetSelectedState</link>
<link id="#lcl.grids.TCustomGrid.Focused">TCustomGrid.Focused</link>
<link id="TGridDrawState">TGridDrawState</link>
</seealso>
</element>
<element name="TCustomDBGrid.GetSelectedState.AState">
<short>TGridDrawState for the selection in the grid control.</short>
</element>
<element name="TCustomDBGrid.GetSelectedState.IsSelected">
<short>
Returns <b>True</b> if the grid as focus and active selection in the State
property.
</short>
</element>
<element name="TCustomDBGrid.GetSmoothScroll">
<short>Gets the smooth scroll setting for the horizontal scroll bar.</short>
<descr>
<p>
<var>GetSmoothScroll</var> is an overridden method in
<var>TCustomDBGrid</var>. It determines whether the smooth scroll setting
(goSmoothScroll) has been included in the Options for the grid control.
</p>
<p>
The return value is always <b>False</b> when the Which argument refers to the
vertical scroll bar (SB_Vert). If Which contains SB_Horz, the inherited
method is called to check the Options for the control. The return value is
<b>True</b> if goSmoothScroll has been included in the Options property.
</p>
</descr>
<seealso>
<link id="TCustomDbGrid.Options"/>
<link id="TDbGridOptions"/>
<link id="TDbGridOption"/>
</seealso>
</element>
<element name="TCustomDBGrid.GetSmoothScroll.Result">
<short>
<b>True</b> if the option has been enabled for the horizontal scroll bar.
</short>
</element>
<element name="TCustomDBGrid.GetSmoothScroll.Which">
<short>
Integer value which identifies the scroll bar checked for the control setting.
</short>
</element>
<element name="TCustomDBGrid.GetTruncCellHintText">
<short>
Gets the truncated hint text for the specified cell.
</short>
<descr>
<p>
<var>GetTruncCellHintText</var> is an overridden method in
<var>TCustomDBGrid</var>. It re-implements the method from the ancestor
class, and does <b>not</b> call the inherited method.
</p>
<p>
GetTruncCellHintText is used to get the truncated hint text (shortened with
an Ellipsis appended) for the cell specified in the ACol and ARow arguments.
No actions are performed in the method if ARow is one of the FixedRows for
the grid control; the return value is an empty string ('') in this situation.
</p>
<p>
GetTruncCellHintText calls GetFieldFromGridColumn to get the TField instance
which provides the data for the column in ACol. The DataType for the TField
instance determines the content stored in the return value. For example:
</p>
<dl>
<dt>ftMemo</dt>
<dd>
Uses the field value in the cell hint text when dgDisplayMemoText has been
included in the Options property.
</dd>
<dt>ftBlob</dt>
<dd>
Causes the value <b>'(blob)'</b> to be used in the cell hint text.
</dd>
</dl>
<p>
Other values in DataType cause the DisplayText for the field to be be used as
the cell hint text.
</p>
<p>
The OnGetCellHint event handler is signalled (when assigned) if
CellHintPriority is set to chpTruncOnly. This allows the TColumn instance for
the cell to be used to override the value for the cell hint text or to
truncate the value to a specific length.
</p>
<p>
GetTruncCellHintText is called from the ShowCellHintWindow method in the
ancestor class.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.GetTruncCellHintText.Result">
<short>Contains the hint text for the cell derived in the method.</short>
</element>
<element name="TCustomDBGrid.GetTruncCellHintText.ACol">
<short>Column number for the cell hint text.</short>
</element>
<element name="TCustomDBGrid.GetTruncCellHintText.ARow">
<short>Row number for the cell hint text.</short>
</element>
<element name="TCustomDBGrid.GridCanModify">
<short>
Indicates if the DataLink is active and allows editing in the grid control.
</short>
<descr>
<p>
<var>GridCanModify</var> indicates if the DataLink is active, and allows
editing. The return value is <b>True</b> when all of the following conditions
are satisfied:
</p>
<ul>
<li>DataLink is Active.</li>
<li>The CanModify property for the Dataset in DataLink is <b>True</b>.</li>
<li>The ReadOnly property for the DataLink is <b>False</b>.</li>
<li>The ReadOnly property for the control is set to <b>False</b>.</li>
<li>dgEditing has been included in the Options for the control.</li>
</ul>
<p>
GridCanModify is called from the KeyDown method, and used in the
implementation of private methods in the grid control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.GridCanModify.Result">
<short><b>True</b> when the grid can be modified.</short>
</element>
<element name="TCustomDBGrid.GetSBVisibility">
<short>
Determines the visibility of the horizontal and vertical scroll bars for the
control.
</short>
<descr>
<p>
<var>GetSBVisibility</var> is an overridden procedure used to determine the
visibility of horizontal and vertical scroll bars for the control.
GetSBVisibility calls the inherited method to use the logic implemented in
the ancestor class. GetSBVisibility overrides the value used for the vertical
scroll bar; it is set to <b>True</b> when ScrollBars contains ssVertical or
ssBoth. ScrollBarAutomatic is called when the vertical scroll bar is not
visible, and the GetScrollbarParams method is used to update the vertical
scroll bar settings.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.GetSBVisibility">TCustomGrid.GetSBVisibility</link>
</seealso>
</element>
<element name="TCustomDBGrid.GetSBVisibility.HsbVisible">
<short>Returns the visibility for the horizontal scroll bar.</short>
</element>
<element name="TCustomDBGrid.GetSBVisibility.VsbVisible">
<short>Returns the visibility for the vertical scroll bar.</short>
</element>
<element name="TCustomDBGrid.GetSBRanges" link="#lcl.grids.TCustomGrid.GetSBRanges"/>
<element name="TCustomDBGrid.GetSBRanges.HsbVisible"/>
<element name="TCustomDBGrid.GetSBRanges.VsbVisible"/>
<element name="TCustomDBGrid.GetSBRanges.HsbRange"/>
<element name="TCustomDBGrid.GetSBRanges.VsbRange"/>
<element name="TCustomDBGrid.GetSBRanges.HsbPage"/>
<element name="TCustomDBGrid.GetSBRanges.VsbPage"/>
<element name="TCustomDBGrid.HeaderClick">
<short>
Performs actions needed when a column header is clicked or dragged for the
grid control.
</short>
<descr>
<p>
<var>HeaderClick</var> is an overridden method in <var>TCustomDBGrid</var>.
It reimplements the method introduced in TCustomGrid to call the private
DoHeaderClick method when a column header is clicked (IsColumn is
<b>True</b>). This causes the OnTitleClick event handler to be signalled
(when assigned) if a column has been defined for the column number in Index.
</p>
<p>
HeaderClick does <b>not</b> call the inherited method.
</p>
<p>
HeaderClick is called from the inherited MouseUp and DialogChar methods.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OnTitleClick"/>
<link id="#lcl.grids.TCustomGrid.HeaderClick">TCustomGrid.HeaderClick</link>
<link id="#lcl.grids.TCustomGrid.MouseUp">TCustomGrid.MouseUp</link>
<link id="#lcl.grids.TCustomGrid.DialogChar">TCustomGrid.DialogChar</link>
</seealso>
</element>
<element name="TCustomDBGrid.HeaderClick.IsColumn">
<short>
<b>True</b> if the click notification is for a column. <b>False</b> if the
notification is for a row.
</short>
</element>
<element name="TCustomDBGrid.HeaderClick.Index">
<short>Ordinal position in Columns for the column click notification.</short>
</element>
<element name="TCustomDBGrid.HeaderSized">
<short>
Updates Columns in the control when a a header cell is resized.
</short>
<descr>
<p>
<var>HeaderSized</var> is an overridden procedure which updates the Columns
for the control when a header cell is resized. If IsColumn contains
<b>False</b> the resize operation was for the height of a header row and no
action is performed in the method. When IsColumn contains <b>True</b> the
request applies to the width of the column with the Field at the position
specified in Index.
</p>
<p>
HeaderSized calls the ColumnIndexFromGridColumn method to determine the
position in the Columns collection for the Field specified in Index. The
width in Columns is updated with the corresponding value from ColWidths.
HeaderSized sets the value in DefaultColWidths to <b>False</b> to indicate
that custom column sizing has been applied to the control.
</p>
<p>
HeaderSized signals the OnColumnSized event handler when assigned for the
control.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.HeaderSized">TCustomGrid.HeaderSized</link>
</seealso>
</element>
<element name="TCustomDBGrid.HeaderSized.IsColumn">
<short>Sizing applies to a column and not a row.</short>
</element>
<element name="TCustomDBGrid.HeaderSized.Index">
<short>Ordinal position for the column.</short>
</element>
<element name="TCustomDBGrid.IsColumnVisible">
<short>
Indicates if the specified column is visible using the column definition or
its display width.
</short>
<descr>
<p>
<var>IsColumnVisible</var> is a <var>Boolean</var> function which indicates
if the specified column number is a visible column for the grid control.
IsColumnVisible uses the Columns collection (when Enabled) to get the
TColumn instance at the specified position. Its Visible property is used as
the return value for the method. When Columns is not used in the control,
the ColWidths property is checked to ensure that the specified column number
has a positive non-zero width.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Columns"/>
<link id="TColumn"/>
<link id="#lcl.grids.TGridColumn">TGridColumn</link>
<link id="#lcl.grids.TCustomGrid.ColWidths">TCustomGrid.ColWidths</link>
</seealso>
</element>
<element name="TCustomDBGrid.IsColumnVisible.Result">
<short>
<b>True</b> if the specified column number is a visible column for the grid
control.
</short>
</element>
<element name="TCustomDBGrid.IsColumnVisible.ACol">
<short>Position for the column examined in the method.</short>
</element>
<element name="TCustomDBGrid.IsValidChar">
<short>
<var>IsValidChar</var> indicates if the specified Field contains the
specified UTF-8 character.
</short>
<descr>
<p>
<var>IsValidChar</var> is a Boolean function that indicates if the Field
specified in <var>AField</var> contains the UTF-8 encoded character in
<var>AChar</var>. No action is required (or performed) when <var>AChar</var>
contains a single byte character.
</p>
<p>
Please note that TField does not contain a method which verifies a Unicode
character. This routine converts a multi-byte Unicode character using
UTF8ToSys and calls the TField.IsValidChar method to validate.
</p>
<p>
IsValidChar returns <b>True</b> when TField.IsValidChar returns the same or
when AChar contains the <var>BackSpace (Decimal 8)</var> character.
</p>
</descr>
</element>
<element name="TCustomDBGrid.KeyDown">
<short>
<var>KeyDown</var> handles special keys and signals the <var>OnKeyDown</var>
event handler.
</short>
<descr>
<p>
<var>KeyDown</var> ensures that keys which affect navigation and editing
operations are handled in the grid control. KeyDown handles the following
keys:
</p>
<dl>
<dt>Tab</dt>
<dd>
Advances to the next column when dgTabs is included in Options. Otherwise
exits the control.
</dd>
<dt>Shift + Tab</dt>
<dd>
Moves to the previous column when dgTabs is included in Options. Otherwise
exits the control.
</dd>
<dt>Return</dt>
<dd>
Enables the editor for the cell when dgEditing is included in Options.
Otherwise advances to the next column.
</dd>
<dt>Ctrl + Delete</dt>
<dd>
Deletes the selected row when dgDisableDelete has not been included in
Options. A confirmation dialog is displayed when dgConfirmDelete is included
in Options.
</dd>
<dt>Up</dt>
<dd>
Moves to the previous row in the dataset. The currently selected column
remains the same.
</dd>
<dt>Down</dt>
<dd>
Moves to the next row in the dataset. The currently selected column remains
the same. Appends a new row when positioned at the end of the dataset and
dgDisableInsert has <b>not</b> been included in Options.
</dd>
<dt>Shift + Up</dt>
<dd>
When dgMultiSelect and dgPersistentMultiSelect have been included in the grid
Options, SelectedRows is extended to include a bookmark to the preceding row
in the grid control (when available). If multi-select has not been enabled in
Options, the current selection in the control is cleared and the new row is
selected.
</dd>
<dt>Shift + Down</dt>
<dd>
When dgMultiSelect and dgPersistentMultiSelect have been included in the grid
Options, SelectedRows is extended to include a bookmark to the next row in
the grid control (when available). If multi-select has not been enabled in
Options, the current selection in the control is cleared and the new row is
selected.
</dd>
<dt>Page Up</dt>
<dd>
Moves towards the beginning of the dataset by the number of rows specified in
VisibleRows.
</dd>
<dt>Page Down</dt>
<dd>
Moves towards the end of the dataset by the number of rows specified in
VisibleRows.
</dd>
<dt>Escape</dt>
<dd>
Cancels an active editor for the selected cell. Clears pending modifications
to the Field for the column.
</dd>
<dt>Insert</dt>
<dd>
Inserts a new row at the current row position when dgDisableInsert has not
been included in Options. The actual position for the new row can change if
the dataset has sorting or ordering capabilities.
</dd>
<dt>Home</dt>
<dd>
Changes the selected cell to first non-fixed column in the control. An active
editor is removed.
</dd>
<dt>Ctrl + Home</dt>
<dd>
Moves to the first row in the dataset. An active editor is removed.
</dd>
<dt>End</dt>
<dd>
Changes the selected cell to the last visible column in the control. An
active editor is removed.
</dd>
<dt>Ctrl + End</dt>
<dd>
Moves to the last row in the dataset. An active editor is removed.
</dd>
<dt>Space</dt>
<dd>
Toggles the value in a column which uses a check box editor.
</dd>
<dt>Ctrl + Multiply (Num Pad *)</dt>
<dd>
Toggles the selected state for the current row when dgMultiSelect is included
in Options.
</dd>
</dl>
<p>
<var>KeyDown</var> reads and writes values in GridFlags as needed while
handling cell editors and performing dataset navigation.
</p>
<p>
<var>KeyDown</var> calls the inherited <var>KeyDown</var> method to process
keys not explicitly handled by the data-aware control.
</p>
<p>
<var>KeyDown</var> signals the <var>OnKeyDown</var> event handler when it has
been assigned for the control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.KeyDown.Key">
<short>Key code examined in the method.</short>
</element>
<element name="TCustomDBGrid.KeyDown.Shift">
<short>Shift, Ctrl, or Alt modifier for the key.</short>
</element>
<element name="TCustomDBGrid.LinkActive">
<short>
<var>LinkActive</var> updates the control after a change to the state of its
DataLink.
</short>
<descr>
<p>
<var>LinkActive</var> is a procedure which updates the control when the state
of its DataLink is changing. Value contains <b>False</b> when the dataset for
the DataLink will be closed. The state change causes updates to other control
properties like SelectedRows which tracks the selected rows in the linked
dataset. LinkActive calls RemoveAutomaticColumns to remove automatic columns
added to the control when the DataLink became active. The LayoutChanged
method is called to refresh the control after updates to the Columns property.
</p>
<p>
No actions are performed in the method when Value contains <b>True</b>.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.LinkActive.Value">
<short><b>True</b> when the dataset is open.</short>
</element>
<element name="TCustomDBGrid.LayoutChanged">
<short>
<var>LayoutChanged</var> links columns to Fields and inserts any required
automatic columns.
</short>
<descr>
<p>
<var>LayoutChanged</var> is a virtual procedure used to link Columns to the
Fields which read and write the values used in the control. LayoutChanged
calls the TDBGridColumns.LinkFields method establish the column-to-field
association. If Columns have not been explicitly defined, the
AddAutomaticColumns method is called to add a column for each Field in the
linked dataset.
</p>
<p>
LayoutChanged calls the BeginLayout and EndLayout methods to minimize the
number of times the OnLayoutChange event is signalled during updates to the
control.
</p>
<p>
LayoutChanged performs no actions when ComponentState indicates the control
is being destroyed (contains csDestroying).
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.Loaded">
<short>
Performs layout operations after the control is loaded at run-time.
</short>
<descr>
<p>
<var>Loaded</var> performs the notification that signals component streaming
has been completed at run-time. Loaded calls the LayoutChanged method to
update the visual appearance of the control. Loaded calls the inherited
Loaded method
</p>
</descr>
<seealso>
<link id="#rtl.classes.TComponent">TComponent</link>
</seealso>
</element>
<element name="TCustomDBGrid.LoadGridOptions">
<short>
Loads values for the Options property from the specified XML configuration
file.
</short>
<descr>
<p>
<var>LoadGridOptions</var> is an overridden method in
<var>TCustomDBGrid</var>. It re-implements the method introduced in
TCustomGrid to read and capture the TDbGridOption values used the Options
property for the class instance. It does <b>not</b> call the inherited method.
</p>
<p>
LoadGridOptions is called from the LoadContent method in the ancestor class.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Options"/>
<link id="TDBGridOptions"/>
<link id="TDBGridOption"/>
<link id="#lcl.grids.TCustomGrid.LoadContent">TCustomGrid.LoadContent</link>
</seealso>
</element>
<element name="TCustomDBGrid.LoadGridOptions.cfg">
<short>XML configuration file loaded in the method.</short>
</element>
<element name="TCustomDBGrid.LoadGridOptions.Version">
<short>Version number for the values in the specified file.</short>
</element>
<element name="TCustomDBGrid.MoveSelection">
<short>
<var>MoveSelection</var> changes the current selection in the control.
</short>
<descr>
<p>
<var>MoveSelection</var> causes the current selection in the control to be
changed. MoveSelection calls the inherited MoveSelection method. If the
selection change causes a different column to become active, the OnColEnter
event handler is signalled (when assigned). MoveSelection calls the
UpdateActive method to ensure that the correct row and/or column are drawn in
the control.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.MoveSelection">TCustomGrid.MoveSelection</link>
</seealso>
</element>
<element name="TCustomDBGrid.MouseButtonAllowed">
<short>
Indicates whether the specified mouse button can be handled when mouse down
messages are processed for for the grid control.
</short>
<descr>
<p>
<var>MouseButtonAllowed</var> is an overridden method in
<var>TCustomDBGrid</var> used to determine whether the specified mouse button
can be handled by the grid control. It re-implements the method from the
ancestor class, and does not call the inherited method.
</p>
<p>
The return value is <b>True</b> when the DataLink is Active, and Button
contains mbLeft or dgAnyButtonCanSelect has been included in the Options for
the control.
</p>
<p>
MouseButtonAllowed is called when mouse button events are handled in the
MouseDown method.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DataLink"/>
<link id="TCustomDBGrid.Options"/>
<link id="TCustomDBGrid.MouseDown"/>
<link id="TComponentDataLink"/>
<link id="TDbGridOptions"/>
<link id="TDbGridOption"/>
<link id="#fcl.db.TDataLink.Active">TDataLink.Active</link>
</seealso>
</element>
<element name="TCustomDBGrid.MouseButtonAllowed.Result">
<short>
<b>True</b> if the specified mouse button is handled in the class instance.
<b>False</b> if the mouse button is processed by the ancestor class.
</short>
</element>
<element name="TCustomDBGrid.MouseButtonAllowed.Button">
<short>Mouse button checked in the method.</short>
</element>
<element name="TCustomDBGrid.MouseDown">
<short>
Handles mouse down messages in the control and signals the
<var>OnMouseDown</var> event handler.
</short>
<descr>
<p>
<var>MouseDown</var> handles mouse button clicks (when allowed) in the
control. MouseDown ensures that the specified Button and State are correctly
applied to the control similar to the processing provided in KeyDown method.
MouseDown translates screen coordinates into the row and column numbers used
in the control and performs actions needed for focus selection, editing or
navigation.
</p>
<p>
No actions are performed in the method at design-time, when GridStatus
contains gsUpdatingData, or when the specified Button is not allowed by the
grid Options or the linked dataset state.
</p>
<p>
If the control is not already focused, SetFocus is called. MouseDown signals
the OnMouseDown event handler when assigned in the class instance.
</p>
<dl>
<dt>
Left Mouse Button (or any mouse button when dgAnyButtonCanSelect is in
Options)
</dt>
<dd>Clears the row Selection if already selected in the grid. </dd>
<dt>Right Mouse Button</dt>
<dd>Toggles the selected row in the control, or opens the PopupMenu when
assigned.</dd>
<dt>Ctrl + Left Mouse Button</dt>
<dd>Toggles the row in the current SelectedRows.</dd>
</dl>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.MouseDown.Button">
<short>Mouse button examined in the method.</short>
</element>
<element name="TCustomDBGrid.MouseDown.Shift">
<short>Shift / Ctrl / Alt modifier for the mouse button.</short>
</element>
<element name="TCustomDBGrid.MouseDown.X">
<short>Horizontal coordinate for the mouse button click.</short>
</element>
<element name="TCustomDBGrid.MouseDown.Y">
<short>Vertical coordinate for the mouse button click.</short>
</element>
<element name="TCustomDBGrid.MouseMove">
<short>
Signals the OnMouseMove event handler for the grid control.
</short>
<descr>
<p>
<var>MouseMove</var> is an overridden procedure used to signal the
<var>OnMouseMove</var> event handler for the grid control. It signals the
OnMouseMove event handler when <var>GridState</var> contains the value
<var>gsSelecting</var>, and the Dragging flag has not been set. Otherwise,
the inherited <var>MouseMove</var> method is called in the method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.MouseMove">TControl.MouseMove</link>
</seealso>
</element>
<element name="TCustomDBGrid.PrepareCanvas">
<short>
Prepares the Canvas to render the specified cell with the drawing state in
aState.
</short>
<descr>
<p>
<var>PrepareCanvas</var> is an overridden method in TCustomDBGrid. It ensures
that the <var>Canvas</var> is configured to use the drawing state in
<var>aState</var>. PrepareCanvas calls the inherited PrepareCanvas method,
and sets the brush color in the Canvas to the value needed for fixed or
focused / selected columns.
</p>
<p>
PrepareCanvas is called from the DrawCell method. It occurs before default
drawing is performed, and before the OnDrawColumnCell or OnDrawColumnTitle
event handlers are signalled.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DrawCell"/>
<link id="TCustomDBGrid.OnDrawColumnCell"/>
<link id="TCustomDBGrid.OnDrawColumnTitle"/>
<link id="TCustomDBGrid.OnDrawColumnTitle"/>
<link id="TCustomDBGrid.OnPrepareCanvas"/>
<link id="TCustomDBGrid.DoPrepareCanvas"/>
<link id="#lcl.grids.TCustomGrid.PrepareCanvas">TCustomGrid.PrepareCanvas</link>
<link id="#lcl.grids.TCustomGrid.DoPrepareCanvas">TCustomGrid.DoPrepareCanvas</link>
</seealso>
</element>
<element name="TCustomDBGrid.PrepareCanvas.aCol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDBGrid.PrepareCanvas.aRow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDBGrid.PrepareCanvas.aState">
<short>Grid draw state for the cell.</short>
</element>
<element name="TCustomDBGrid.PrepareCellHints">
<short>Sets the active record in the grid to the specified row.</short>
<descr>
<p>
PrepareCellHints is called from ShowCellHintWindow in the ancestor class, and
occurs before the various cell hint formats are derived.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDBGrid.PrepareCellHints.ACol">
<short>Column number for the cell.</short>
</element>
<element name="TCustomDBGrid.PrepareCellHints.ARow">
<short>Row number for the cell.</short>
</element>
<element name="TCustomDBGrid.RemoveAutomaticColumns">
<short>
Removes automatic columns added to the grid control.
</short>
<descr>
<p>
<var>RemoveAutomaticColumns</var> is a procedure used to remove automatic
columns added to the grid control in the AddAutomaticColumns method.
Automatic columns are generated at run-time when the value dgeAutoColumns is
included in the OptionsExtra property. The feature cannot be enabled at
design-time. No actions are performed in the method at design-time.
</p>
<p>
RemoveAutomaticColumns uses the Columns property to execute its
RemoveAutoColumns method which removes the automatic columns in the
collection.
</p>
<p>
RemoveAutomaticColumns is used in the implementation of the LinkActive and
the SetExtraOptions methods.
</p>
<p>
Use the OptionsExtra property to control adding and removing automatic
columns at run-time.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SaveGridOptions">
<short>
Saves values in the Options property to the specified XML configuration file.
</short>
<descr>
<p>
<var>SaveGridOptions</var> is an overridden method in
<var>TCustomDBGrid</var>. It re-implements the method from the ancestor class
and does <b>not</b> call the inherited method.
</p>
<p>
SaveGridOptions is used to store the values for settings in the Options
property to the XML configuration file in Cfg. SaveGridOptions is called from
the SaveContent method in the ancestor class.
</p>
<p>
See LoadGridOptions and LoadContent for the actions performed to restore the
saved Option values.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Options"/>
<link id="TCustomDBGrid.LoadGridOptions"/>
<link id="#lcl.grids.TCustomGrid.SaveContent">TCustomGrid.SaveContent</link>
<link id="#lcl.grids.TCustomGrid.LoadContent">TCustomGrid.LoadContent</link>
</seealso>
</element>
<element name="TCustomDBGrid.SaveGridOptions.Cfg">
<short>XML configuration file where the values are stored.</short>
</element>
<element name="TCustomDBGrid.SelectEditor">
<short>
Gets the editor used for the SelectedField in the control.
</short>
<descr>
<p>
<var>SelectEditor</var> is a procedure used to get the editor used for the
SelectedField in the control. SelectEditor requires an active dataset in
DataLink to access properties and methods in SelectedField. SelectEditor uses
SelectedField to get the maximum length of the Field in the dataset and
stores the value in the Editor for the control.
</p>
<p>
SelectEditor calls the Inherited SelectEditor method to initialize the class
used in the Editor property. SelectEditor signals the OnSelectEditor event
handler (when assigned) to get a custom value for the Editor property. Please
note that Editor is set to <b>Nil</b> if the OnSelectEditor event handler is
not assigned for the control.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.SelectEditor">TCustomGrid.SelectEditor</link>
</seealso>
</element>
<element name="TCustomDBGrid.SetEditText">
<short>
Sets the textual value for the editor in the specified cell.
</short>
<descr>
<p>
SetEditText sets the textual value for the editor in the specified cell.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.SetEditText">TCustomGrid.SetEditText</link>
</seealso>
</element>
<element name="TCustomDBGrid.SetEditText.ACol">
<short>Column number for the cell updated in the method.</short>
</element>
<element name="TCustomDBGrid.SetEditText.ARow">
<short>Row number for the cell updated in the method.</short>
</element>
<element name="TCustomDBGrid.SetEditText.Value">
<short>New value for the cell.</short>
</element>
<element name="TCustomDBGrid.SetFixedCols">
<short>Sets the value for the FixedCols property.</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.SetFixedCols.AValue">
<short>New value for the FixedCols property.</short>
</element>
<element name="TCustomDBGrid.UnprepareCellHints">
<short>
Restores the record that was active when PrepareCellHints was called.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.UpdateActive">
<short>
<var>UpdateActive</var> redraws the control when the active row in the
dataset is changed.
</short>
<descr>
<p>
<var>UpdateActive</var> causes the control to be redrawn when the active row
in the linked dataset is changed. UpdateActive requires an active dataset in
DataLink with a selected record. No actions are performed in the method when
the dataset is closed or contains no rows. UpdateActive calls InvalidateCell
when the selected row in the control has changed. InvaidateRow is called to
update the selected row in the control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.UpdateAutoSizeColumns">
<short>
Calculates the width for auto-sized columns and refreshes the grid control.
</short>
<descr>
<p>
<var>UpdateAutoSizeColumns</var> is a method used to auto-size columns in the
grid and redraw the control. No actions are performed in the method if
gsAutoSized is already present in the GridStatus property. This occurs when
UpdateAutoSizeColumns has already been called, and the columns have already
been resized.
</p>
<p>
UpdateAutoSizeColumns visits each of the non-fixed Columns on the grid
control. It uses both the TField and TGridColumn definitions for each column
to determine its size. The TGridColumn instance in Columns provides the title
and font used to measure the column header. The TField instance in the column
definition provides the value for the field and its storage size when the
data link is active for the control.
</p>
<p>
A temporary TCanvas instance is used to calculate the width for the text
displayed in each of the columns.
</p>
<p>
UpdateAutoSizeColumns includes the value gsAutoSized in the GridStatus
property when the resizing operation has been completed. The control is
refreshed prior to exiting from the method.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.GridStatus"/>
<link id="TCustomDBGrid.Columns"/>
<link id="TCustomDBGrid.DataLink"/>
<link id="TGridColumn"/>
</seealso>
</element>
<element name="TCustomDBGrid.UpdateData">
<short>
<var>UpdateData</var> is used to perform pending updates for the selected
cell.
</short>
<descr>
<p>
<var>UpdateData</var> is a virtual procedure used to perform pending updates
for the selected cell to its Field in the grid DataSet. No action is
performed if the selected cell has not been modified (or cannot be modified)
or the DataSet is not in edit mode.
</p>
<p>
UpdateData ensures that the appropriate method is used to update Field data
based on the TField.FieldKind for the modified column. Special handling is
provided for lookup Fields to check the cached lookup list or to retrieve the
lookup result using its key Fields.
</p>
<p>
UpdateData calls the EditingColumn method to disable the editing flag for the
column prior to exit.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.UpdateGridCounts">
<short>
Gets the total number of visible columns or fields for the grid control.
</short>
<descr>
<p>
<var>UpdateGridCounts</var> is an Integer function which gets the total
number of visible columns (or fields) in the grid control.
</p>
<p>
UpdateGridCounts calls GetColumnCount to get the number of entries in the
Columns collection. When Columns have been defined, and DataLink is Active,
the RecCount and RowCount variables are updated. If Columns is not used, the
fields in the linked dataset or checked for the number of visible TField
entries.
</p>
<p>
The UpdateGridColumnSizes method is used to adjust the sizes for the columns.
If the linked dataset is Active, and a Row is Selected, the
AdjustEditorBounds method is called.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.UpdateGridCounts.Result">
<short>
Number of visible columns or fields defined for the grid control.
</short>
</element>
<element name="TCustomDBGrid.WMVScroll">
<short>
Handles the LM_VScroll message for the control.
</short>
<descr>
<p>
<var>WMVScroll</var> is a method used to handle a LM_VScroll message for the
control. It ensures that the dataset for control is repositioned for the
window message. No actions are performed in the method if the DataLink for
the control is not active.
</p>
<p>
WMVScroll checks the ScrollCode member in Message to determine the actions
performed in the method. The following scroll code values are handled:
</p>
<dl>
<dt>SB_TOP</dt>
<dd>Moves the dataset in DataLink to the first row.</dd>
<dt>SB_BOTTOM</dt>
<dd>Moves the dataset in DataLink to the last row.</dd>
<dt>SB_PAGEUP</dt>
<dd>
Moves the dataset in DataLink towards the beginning of the file.
VisibleRowCount contains the number of rows.
</dd>
<dt>SB_LINEUP</dt>
<dd>Moves the dataset in DataLink towards the beginning of the file by one
row.</dd>
<dt>SB_LINEDOWN</dt>
<dd>Moves the dataset in DataLink towards the end of the file by one row.</dd>
<dt>SB_PAGEDOWN</dt>
<dd>
Moves the dataset in DataLink towards the end of the file. VisibleRowCount
contains the number of rows.
</dd>
<dt>SB_THUMBPOSITION</dt>
<dd>
Repositions the dataset in DataLink when the thumb bar position for the
control has been changed.
</dd>
<dt>SB_THUMBTRACK</dt>
<dd>
Repositions the dataset in DataLink when thumb bar tracking has been enabled
in the Options for the control. No actions are performed if the dataset is
not sequenced, the message has already been handled for the SB_THUMBPOSITION
scroll message, or thumb bar tracking has not been enabled in options.
</dd>
</dl>
<p>
Other scroll code values in Message are ignored.
</p>
<p>
WMVScroll calls ScrollBarPosition to update the position for the vertical
scroll bar on the control. If EditorMode is enabled, the private
RestoreEditor method is called to toggle the value in EditorMode and
redraw the editor control.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DataLink"/>
<link id="TCustomDBGrid.WndProc"/>
<link id="#lcl.grids.TCustomGrid.WMVScroll">TCustomGrid.WMVScroll</link>
<link id="#lcl.grids.TCustomGrid.ScrollBarPosition">TCustomGrid.ScrollBarPosition</link>
<link id="#lcl.grids.TCustomGrid.EditorMode">TCustomGrid.EditorMode</link>
<link id="#lcl.grids.TCustomGrid.WndProc">TCustomGrid.WndProc</link>
</seealso>
</element>
<element name="TCustomDBGrid.WMVScroll.Message">
<short>Window message examined and handled in the method.</short>
</element>
<element name="TCustomDBGrid.WndProc">
<short>
Extends the message processing loop for the database grid control.
</short>
<descr>
<p>
<var>WndProc</var> is an overridden method in <var>TCustomDBGrid</var>. It
ensures that LM_SETFOCUS messages are handled properly when gsUpdatingData
has been included in the GridStatus property. This includes using the LCL
interface to give focus to the active Editor control, and selecting its
content.
</p>
<p>
WndProc calls the inherited method prior to exit.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.GridStatus"/>
<link id="#lcl.grids.TCustomGrid.EditorMode">TCustomGrid.EditorMode</link>
<link id="#lcl.grids.TCustomGrid.Editor">TCustomGrid.Editor</link>
<link id="#lcl.grids.TCustomGrid.WndProc">TCustomGrid.WndProc</link>
</seealso>
</element>
<element name="TCustomDBGrid.WndProc.TheMessage">
<short>Window message examined and handled in the method.</short>
</element>
<element name="TCustomDBGrid.Columns">
<short>
Columns provides access to columns defined for the database grid control.
</short>
<descr>
<p>
<var>Columns</var> is a <var>TDBGridColumns</var> property that provides
access to columns defined for the database grid control. Columns reimplements
the property defined in the ancestor class. The items in the collection are
represented as TColumn instances which are derived from TGridColumn. The
TColumn instances include additional properties and methods which identify
the field name, TField instance, and display format for the column. The
properties defined in TGridColumn are also available.
</p>
<p>
TColumn instances in Columns can be explicitly created in the IDE at
design-time, or automatically added when the OptionsExtra property includes
the value dgeAutoColumns.
</p>
<p>
Use of the Columns property is not required. When left empty, the fields
displayed on the grid and their attributes are retrieved directly from the
linked dataset in DataLink. When columns are not used, properties like
FirstColumn, LastColumn, and SelectColumn always contain <b>Nil</b>.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.OptionsExtra"/>
<link id="TCustomDBGrid.DataLink"/>
<link id="TCustomDBGrid.DataSource"/>
<link id="TDBGridColumns"/>
<link id="TColumn"/>
<link id="#lcl.grids.TGridColumn">TGridColumn</link>
<link id="#fcl.db.TField">TField</link>
</seealso>
</element>
<element name="TCustomDBGrid.FixedRowsExtra">
<short>
Reserves additional rows in the fixed header area for the control.
</short>
<descr>
<p>
<var>FixedRowsExtra</var> is an <var>Integer</var> property which indicates
the number of additional rows reserved at the bottom of the fixed header rows
in the database grid control. The default value for the property is <b>0</b>,
and reserves <b>NO</b> additional rows.
</p>
<p>
Changing the value for the property causes the LayoutChanged method to be
called. This may affect the linked data fields for the control and / or the
automatic columns displayed on the grid control.
</p>
<p>
FixedRowsExtra is used in the UpdateGridCounts method when dgTitles has been
included in the Options for the control, and causes the specified number of
rows to be added after the column headers row and before the data cells in
the grid.
</p>
</descr>
<seealso>
<link id="TCustomDbGrid.LayoutChanged"/>
<link id="TCustomDbGrid.UpdateGridCounts"/>
</seealso>
</element>
<element name="TCustomDBGrid.GridStatus">
<short>
Stores status information about operations active for the grid control.
</short>
<descr>
<p>
<var>GridStatus</var> is a TDBGridStatus property which stores status
information for the grid control. GridStatus is a set type that can contain 0
(zero) or more values from the TDbGridStatusItem enumeration, and indicate
operations occurring in the control at run-time. Values in GridStatus are
added and removed in several methods for the grid control to prevent
duplicate calls the method while the operation is active.
</p>
<p>
See TDbGridStatusItem for more information about the values in the
enumeration and their meanings.
</p>
</descr>
<seealso>
<link id="TDbGridStatus"/>
<link id="TDbGridStatusItem"/>
</seealso>
</element>
<element name="TCustomDBGrid.Datalink">
<short>
Datalink for the component with event handlers for the linked dataset.
</short>
<descr>
<p>
<var>Datalink</var> is a read-only <var>TComponentDataLink</var> property
which provides access to the linked data source and dataset for the grid. It
contains event handlers signalled when the actions occur for the data source
or dataset. It allows access to the values for the DataSource and DataSet
properties for the control, as well as the Columns defined for the control.
</p>
<p>
DataLink is created and configured in the Create constructor; event handlers
for the grid control are assigned to the corresponding event handlers in
DataLink.
</p>
</descr>
<seealso>
<link id="TComponentDataLink"/>
</seealso>
</element>
<element name="TCustomDBGrid.Options">
<short>
Contains the optional features or behaviors that are enabled for the grid
control.
</short>
<descr>
<p>
<var>Options</var> is a <var>TDBGridOptions</var> property that specifies
features or behaviors that can be enabled or disabled by values stored in the
property. Please note that these options are different than the TGridOption
values used in the ancestor class. Options can contain zero (0) or more
values from the TDBGridOption enumeration.
</p>
<p>
Options contains the following default values when the control is created:
</p>
<ul>
<li>dgColumnResize</li>
<li>dgColumnMove</li>
<li>dgTitles</li>
<li>dgIndicator</li>
<li>dgRowLines</li>
<li>dgColLines</li>
<li>dgConfirmDelete</li>
<li>dgCancelOnExit </li>
<li>dgTabs</li>
<li>dgEditing</li>
<li>dgAlwaysShowSelection</li>
</ul>
<p>
One value commonly included in Options is dgDisplayMemoText. This allows memo
fields (those using the ftMemo data type) to display their actual content
instead of the '(Memo)' string literal.
</p>
<p>
See TDBGridOption for more information about values in the enumeration and
their meanings.
</p>
<p>
Changing value(s) in Options may cause other values in the set to be removed.
For instance: row selection. Enabling row selection forces the options for
editing, always displaying the editor, and row highlighting to be removed from
the Options property.
</p>
<p>
New values assigned to the property may cause other aspects of the grid
control to be updated to reflect the change(s). For example, removing
multi-selection from the Options property forces the SelectedRows property to
be cleared.
</p>
<p>
The TDBGridOption values stored in Options are different than the TGridOption
values used in the ancestor class. As a result, SetOptions (the write access
specifier) must translate any TDBGridOption values to their TGridOption
equivalents and store them in the inherited Options property.
</p>
</descr>
<seealso>
<link id="TDBGridOptions"/>
<link id="TDBGridOption"/>
<link id="#lcl.grids.TGridOptions">TGridOptions</link>
<link id="#lcl.grids.TGridOption">TGridOption</link>
<link id="#lcl.grids.TGridOptions2">TGridOptions2</link>
</seealso>
</element>
<element name="TCustomDBGrid.OptionsExtra">
<short>
Contains the extra options enabled for the database grid control.
</short>
<descr>
<p>
<var>OptionsExtra</var> is a <var>TDBGridExtraOptions</var> property used to
store extra options enabled for the grid control. OptionsExtra is a set type
which can contain 0 (zero) or more values from the TDBGridExtraOption
enumeration. The default values in the property include dgeAutoColumns and
dgeCheckboxColumn. These values enable the use of automatic columns definitions
from the linked dataset and displaying check boxes in columns with
<b>Boolean</b> values.
</p>
<p>
Changing the values in the OptionsExtra property causes the grid control to be
updated to reflect the values added to or removed from the set. Adding or
removing dgeCheckboxColumn causes the control to be redrawn. Adding or removing
dgeAutoColumns causes automatic columns to be added to or removed from the grid
as needed. See
<link id="TCustomDBGrid.AddAutomaticColumns">AddAutomaticColumns</link> and
<link id="TCustomDBGrid.RemoveAutomaticColumns">RemoveAutomaticColumns</link>
for more information. The active cell and/or row is updated prior to exit by
calling UpdateActive.
</p>
<p>
Use the Options and Options2 properties to control other features and behaviors
enabled for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.AddAutomaticColumns"/>
<link id="TCustomDBGrid.RemoveAutomaticColumns"/>
<link id="TCustomDBGrid.UpdateActive"/>
<link id="TDBGrid.Columns"/>
<link id="TDBGrid.Options"/>
<link id="TDBGrid.Options2"/>
<link id="TDBGridExtraOption"/>
<link id="TDBGridExtraOptions"/>
<link id="TColumn"/>
</seealso>
</element>
<element name="TCustomDBGrid.ReadOnly">
<short>
Indicates if modifications are allowed in the grid control.
</short>
<descr>
<p>
<var>ReadOnly</var> is a <var>Boolean</var> property that indicates if
modifications are allowed in the grid control. Please note that ReadOnly
applies to the visual grid control only. It does not take into account
whether Fields in Columns or the DataSet in DataSource allow modifications.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SelectedRows">
<short>
<var>SelectedRows</var> are the recorded rows in a bookmark list.
</short>
<descr>
<p>
<var>SelectedRows</var> is a read-only <var>TBookmarkList</var> property used
to store TBookmark instance for one or more rows selected in the grid
control. SelectedRows will normally contain a single TBookmark entry in its
Items property for a selected row. However, multiples entry can exist when
multi-selection is enabled by including the value dgMultiSelect in the
Options property.
</p>
<p>
SelectedRows is updated when methods which perform record navigation call the
DrawRow, SelectRecord or ToggleSelectedRow methods.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnCellClick">
<short>
Event handler signalled for a mouse click in a grid column.
</short>
<descr>
<p>
<var>OnCellClick</var> is a <var>TDBGridClickEvent</var> property that
contains the event handler signalled when a mouse button is clicked in a cell
for the grid control. Assign a procedure to the OnCellClick property to
respond to mouse click messages in a column for the grid control. The column
number for the clicked cell is passed as an argument to the handler routine.
</p>
<p>
OnCellClick is signalled from the CellClick method, and occurs for Left mouse
button clicks only.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.CellClick"/>
<link id="TDBGridClickEvent"/>
</seealso>
</element>
<element name="TCustomDBGrid.OnColEnter">
<short>
Event handler signalled when the mouse enters a column.
</short>
<descr>
<p>
<var>OnColEnter</var> is a <var>TNotifyEvent</var> property that implements
the event handler signalled when the mouse enters a column for the grid
control. OnColEnter is also signalled when the grid control gains focus.
Assign a procedure to the property to allow responding to the notification
event.
</p>
<p>
OnColEnter is triggered from the <var>MoveSelection</var> method.
</p>
</descr>
</element>
<element name="TCustomDBGrid.OnColExit">
<short>
Event handler signalled when the mouse exits a column.
</short>
<descr>
<p>
<var>OnColExit</var> is a <var>TNotifyEvent</var> property that implements
the event handler signalled when the mouse exits a column in the grid
control. OnColExit is also signalled when the grid control loses focus.
Assign a procedure to the property to allow responding to the notification
event.
</p>
<p>
OnColExit is triggered from the <var>BeforeMoveSelection</var> method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnColumnMoved">
<short>
Event handler signalled when the order of a column is changed.
</short>
<descr>
<p>
<var>OnColumnMoved</var> is a <var>TMovedEvent</var> property that implements
an event handler signalled when the order of a column in the grid control is
changed. Assign a procedure to the event handler to respond to the event
notification. OnColumnMoved is triggered from the <var>ColRowMoved</var>
method after the new column ordering has been applied.
</p>
<p>
Use <var>OnRowMoved</var> to responding to row ordering notification events.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnColumnSized">
<short>
Event handler signalled when a grid column has been resized.
</short>
<descr>
<p>
<var>OnColumnSized</var> is a TNotifyEvent property that implements the event
handler signalled when a column has been resized. OnColumnSized allows the
application to perform actions required after the column has been resized.
Assign a procedure to the event handler to respond to the event notification.
</p>
<p>
OnColumnSized is triggered from the HeaderSized method when a change to a
column width was requested.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnDrawColumnCell">
<short>
Event handler signalled when a cell needs to be drawn.
</short>
<descr>
<p>
<var>OnDrawColumnCell</var> is a <var>TDrawColumnCellEvent</var> property
that implements the event handler signalled when a cell in the control needs
to be drawn. Assign a procedure to the event handler to perform drawing
needed for the cell using the arguments to the routine.
</p>
<p>
OnDrawColumnCell is triggered from the <var>DrawCell</var> method after the
Canvas is prepared and any fixed cell or DefaultDrawing is performed. Please
note that OnDrawColumnCell is not performed at design-time, or for fixed rows
in the grid control.
</p>
</descr>
<seealso>
<link id="TDrawColumnCellEvent">TDrawColumnCellEvent</link>
</seealso>
</element>
<element name="TCustomDBGrid.OnDrawColumnTitle">
<short>
Event handler signalled when a cell title needs to be drawn.
</short>
<descr>
<p>
<var>OnDrawColumnTitle</var> is a <var>TDrawColumnCellEvent</var> property
that implements the event handler signalled when a cell title in the control
needs to be drawn. Assign a procedure to the event handler to perform drawing
needed for the cell title using the arguments to the routine.
</p>
</descr>
<seealso>
<link id="TDrawColumnCellEvent">TDrawColumnCellEvent</link>
</seealso>
</element>
<element name="TCustomDBGrid.OnFieldEditMask">
<short>
Event handler signalled to get the edit mask for a Field.
</short>
<descr>
<p>
<var>OnFieldEditMask</var> is a <var>TGetDbEditMaskEvent</var> property that
implements the event handler signalled to get the edit mask used for a Field
in the grid control. OnFieldEditMask allows overriding the edit mask assigned
to a Field in the Columns property, or assigning an edit mask for Fields that
do not already have one. Assign a procedure to the event handler to respond
to the event notification.
</p>
<p>
OnFieldEditMask is triggered from the <var>GetEditMask</var> method when the
DataSet in DataLink is active.
</p>
</descr>
</element>
<element name="TCustomDBGrid.OnGetCellHint">
<short>
Event handler signalled to get the hint text for a cell in the grid control.
</short>
<descr>
<p>
<var>OnGetCellHint</var> is a <var>TDbGridCellHintEvent</var> property with
the event handler signalled to get the hint text displayed for a cell on the
grid control. Arguments passed to the event handler identify the grid
control, the TColumn instance which contains the data for the cell, and
variable parameter with the hint text derived in the handler routine. An
application must implement and assign a handler routine to the property to
respond to the event notification.
</p>
<p>
OnGetCellHint is signalled from the GetCellHintText method. It allows a
custom value to be provided as the hint text for a cell and can be based on
the column definition or the field accessed in the linked dataset.
</p>
<remark>
OnGetCellHint is not signalled for cells which are located in the FixedRows
for the grid control.
</remark>
</descr>
<seealso>
<link id="TDbGridCellHintEvent"/>
</seealso>
</element>
<element name="TCustomDBGrid.OnPrepareCanvas">
<short>
Event handler signalled to prepare the grid canvas for drawing a cell.
</short>
<descr>
<p>
<var>OnPrepareCanvas</var> is a <var>TPrepareDbGridCanvasEvent</var> property
that implements the event handler signalled to prepare the Canvas for drawing
a cell in the grid. OnPrepareCanvas allows the application to provide custom
settings in the Canvas for the Grid control. The <var>Sender</var> argument
is the grid control, and can be used to access the Canvas or other properties
in the component. Assign a procedure to the event handler to respond to the
event notification.
</p>
<p>
OnPrepareCanvas is signalled from the DoPrepareCanvas method, and occurs when
the row is not one of the FixedRows for the grid control.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DoPrepareCanvas"/>
<link id="TPrepareDbGridCanvasEvent"/>
<link id="#lcl.grids.TCustomGrid.FixedRows">TCustomGrid.FixedRows</link>
</seealso>
</element>
<element name="TCustomDBGrid.OnSelectEditor">
<short>
Event handler signalled when the editor is selected for a Field in the grid.
</short>
<descr>
<p>
<var>OnSelectEditor</var> is a TDbGridSelEditorEvent property that implements
the event handler signalled when an editor control is selected for the
current Field in the grid. OnSelectEditor is used to modify or override the
editor control for SelectedField in the grid control.
</p>
<p>
OnSelectEditor is signalled in the SelectEditor method after the default
editor control has be chosen and its maximum length has been set. Assign a
procedure to the event handler which modifies or assigns the control in the
Editor argument.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnTitleClick">
<short>
Event handler for mouse clicks on a Title cell.
</short>
<descr>
<p>
<var>OnTitleClick</var> is a <var>TDBGridClickEvent</var> property that
implements the event handler signalled when a mouse click occurs in the fixed
title cell for a column. Use OnTitleClick to perform actions required when
the title cell for a column is clicked. Assign a procedure to the event
handler to respond to the event notification.
</p>
<p>
OnTitleClick is triggered from the <var>DoHeaderClick</var> method.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnUserCheckboxBitmap">
<short>
Event handler signalled to get the image used for a check box entry on the
grid.
</short>
<descr>
<p>
<var>OnUserCheckboxBitmap</var> is a property that implements the
<var>TDBGridCheckboxBitmapEvent</var> event handler signalled to get the
image used for a check box entry on the grid. OnUserCheckboxBitmap allows the
application to override the TBitmap provided by the GetImageForCheckBox
method. Assign a procedure to the event handler that implements the
TDBGridCheckboxBitmapEvent interface to enable the event handler.
</p>
<p>
The user is encouraged to provide bitmaps to represent the three states for
database grid check boxes: <var>gcbpUnChecked</var>, <var>gcbpChecked</var>
and
<var>gcbpGrayed</var>.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.OnUserCheckboxState">
<short>
Event handler signalled to get a user-specified value for a check box editor
on the grid control.
</short>
<descr>
<p>
<var>OnUserCheckboxState</var> is a <var>TDbGridCheckboxStateEvent</var>
property with the event handler signalled to get the checked state for a
check box cell on the grid control. Arguments to the handler include the grid
control and the TCheckboxState value which can be updated in the routine.
Implement and assign a handler routine to the property to respond to the
event notification.
</p>
<p>
OnUserCheckboxState is signalled (when assigned) from the DrawCheckboxBitmaps
method. It occurs after the initial value has been assigned for the AState
argument. It occurs before DrawGridCheckboxBitmaps is called to draw the
check box using the value in AState.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DrawCheckboxBitmaps"/>
<link id="TCustomDBGrid.DefaultDrawCell"/>
<link id="TDbGridCheckboxStateEvent"/>
<link id="#lcl.stdctrls.TCheckboxState">TCheckboxState</link>
</seealso>
</element>
<element name="TCustomDBGrid.OnRowMoved">
<short>
Event handler signalled when a row is moved on the grid control.
</short>
<descr>
<p>
<var>OnRowMoved</var> is a <var>TMovedEvent</var> property with the event
handler signalled when a row is moved on the grid control. An application can
implement and assign a handler routine to perform actions needed when a row
is moved on the control. Arguments to the routine include the grid control,
and the index positions for the relocated row and its new position when the
move was completed.
</p>
<p>
When a routine is assigned to the property, the value goRowMoving is included
in the Options property. If Nil is assigned to the property, goRowMoving is
removed from the Options property.
</p>
<p>
OnRowMoved is signalled from the ColRowMoved method.
</p>
<p>
Use OnColumnMoved to perform actions needed when a column is moved on the
grid control.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.Options"/>
<link id="TCustomDBGrid.ColRowMoved"/>
<link id="TCustomDBGrid.OnColumnMoved"/>
<link id="TDBGridOptions"/>
<link id="TDBGridOption"/>
<link id="TMovedEvent"/>
</seealso>
</element>
<element name="TCustomDBGrid.Create">
<short>
Constructor for the class instance.
</short>
<descr>
<p>
<var>Create</var> is the constructor for the <var>TCustomDBGrid</var>
instance. Create calls the inherited <var>Create</var> method, and allocates
resources for properties in the class instance. Create sets the default event
handlers used in DataLink to the corresponding procedures in the class:
</p>
<ul>
<li>OnDataSetChanged</li>
<li>OnDataSetClose</li>
<li>OnDataSetOpen</li>
<li>OnDataSetScrolled</li>
<li>OnEditingChanged</li>
<li>OnFocusControl</li>
<li>OnInvalidDataset</li>
<li>OnInvalidDataSource</li>
<li>OnLayoutChanged</li>
<li>OnRecordChanged</li>
<li>OnUpdateData</li>
</ul>
<p>
Create calls RenewColWidths to set columns to their default widths and to
disable column auto-sizing.
</p>
<p>
Create sets the values in the Options property to establish the baseline
features and behavior enabled for the grid control, including:
</p>
<ul>
<li>dgColumnResize</li>
<li>dgColumnMove</li>
<li>dgTitles</li>
<li>dgIndicator</li>
<li>dgRowLines</li>
<li>dgColLines</li>
<li>dgConfirmDelete</li>
<li>dgCancelOnExit</li>
<li>dgTabs</li>
<li>dgEditing</li>
<li>dgAlwaysShowSelection</li>
</ul>
<p>
See the Options property and TDBGridOption type for more information on
values in the enumeration.
</p>
<p>
Values in the Options property from the ancestor class are also updated. They
use the set of enumeration values in TGridOption, and are updated to include
values which correspond to the TDBGridOption values used in the database grid
control.
</p>
<p>
Create sets the default values in the ExtraOptions property to the following:
</p>
<ul>
<li>dgeAutoColumns</li>
<li>dgeCheckboxColumn</li>
</ul>
<p>
The value of the AutoAdvance property is set to aaRightDown, indicating the
cell navigation is from left-to-right and then top-to-bottom in the grid
control.
</p>
<p>
Create sets the value in ScrollBars to ssBoth indicating that both horizontal
and vertical scroll bars are needed, and sets AllowOutboundEvents to
<b>False</b> to prevent forwarding of event notifications to the ancestor
class.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.Create">TCustomGrid.Create</link>
</seealso>
</element>
<element name="TCustomDBGrid.Create.AOwner">
<short>Owner of the component.</short>
</element>
<element name="TCustomDBGrid.AutoAdjustColumns">
<short>
Updates the widths for automatically-sized columns in the grid control.
</short>
<descr>
<p>
Removes <var>gsAutoSized</var> from the <var>GridStatus</var> flags. Calls
<var>UpdateAutoSizeColumns</var> to calculate the widths for automatically-
sized columns. AutoAdjustColumns does <b>NOT</b> call the inherited method.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.AutoAdjustColumns">TCustomGrid.AutoAdjustColumns</link>
</seealso>
</element>
<element name="TCustomDBGrid.InitiateAction">
<short>
Updates the ActionLink for the control and resets flag values in GridStatus.
</short>
<descr/>
<seealso>
<link id="#lcl.controls.TControl.InitiateAction">TControl.InitiateAction</link>
</seealso>
</element>
<element name="TCustomDBGrid.DefaultDrawColumnCell">
<short>
Default method used to draw cells in a specified column for the grid control.
</short>
<descr>
<p>
<var>DefaultDrawColumnCell</var> is the default method used for drawing cells
in a column. DefaultDrawColumnCell uses the specified column to get the Field
and the editor style needed to render the cell.
</p>
<p>
Check box columns are drawn by calling the DrawCheckBoxBitmaps method. Other
editor styles use the DisplayText for the TField as the value drawn using the
DrawCellText method. Please note that Fields with a DataType property of
ftBlob are always rendered as the string literal <var><b>'(blob)'</b></var>.
</p>
<p>
Use the OnDrawColumnCell event handler to render a cell when DefaultDrawing
is not enabled for the grid control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.DefaultDrawColumnCell.Rect">
<short>Canvas rectangle for the cell.</short>
</element>
<element name="TCustomDBGrid.DefaultDrawColumnCell.DataCol">
<short>Index of the Field for cell data.</short>
</element>
<element name="TCustomDBGrid.DefaultDrawColumnCell.Column">
<short>Column definition for the cell.</short>
</element>
<element name="TCustomDBGrid.DefaultDrawColumnCell.State">
<short>Grid drawing state for the cell.</short>
</element>
<element name="TCustomDBGrid.EditorByStyle">
<short>
Gets an editor control which uses the specified button style.
</short>
<descr>
<p>
<var>EditorByStyle</var> is an overridden TWinControl function used to a get
an editor control with the specified button style. EditorByStyle calls the
ColumnEditorStyle method to get the button style for the current column and
SelectedField. This allows the grid to override the cbsAuto button style when
the SelectedField contains a Boolean data type. EditorByStyle calls the
inherited method using the derived TColumnButtonStyle value as an argument.
The editor control in the return value is supplied by the inherited
EditorByStyle method.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.EditorByStyle">TCustomGrid.EditorByStyle</link>
</seealso>
</element>
<element name="TCustomDBGrid.EditorByStyle.Result">
<short>Editor control for the specified button style.</short>
</element>
<element name="TCustomDBGrid.EditorByStyle.Style">
<short>Button style to use in the editor control.</short>
</element>
<element name="TCustomDBGrid.ResetColWidths">
<short>
Restores column widths to their default values.
</short>
<descr>
<p>
<var>ResetColWidths</var> is a procedure used to restore column widths in the
grid to their default values. ResetColWidths uses the value in
DefaultColWidths to determine if default column widths are already in use.
When DefaultColWidths contains <b>True</b>, no actions are performed in the
method.
</p>
<p>
ResetColWidths calls the RenewColWidths method to restore the column widths.
The LayoutChanged method is called to refresh the grid control after the
column layouts are altered.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.Destroy">
<short>
<var>Destroy</var> is the destructor for <var>TCustomDbGrid</var>
</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor in <var>TCustomDbGrid</var>.
Destroy frees any bookmarks stored in the SelectedRows property. Destroys
ensures that event handlers assigned to its DataLink property are removed
prior to freeing resources allocated to the property.
</p>
<p>
Destroy calls the inherited <var>Destroy</var> method.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DataLink">TCustomDBGrid.DataLink</link>
<link id="TCustomDBGrid.SelectedRows">TCustomDBGrid.SelectedRows</link>
<link id="#lcl.grids.TCustomGrid.Destroy">TCustomGrid.Destroy</link>
</seealso>
</element>
<element name="TCustomDBGrid.MouseToRecordOffset">
<short>
Gets the grid zone and record offset for the cell at the specified mouse
coordinates.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.MouseToRecordOffset.Result">
<short>TGridZone value for the area under the mouse cursor.</short>
</element>
<element name="TCustomDBGrid.MouseToRecordOffset.x">
<short>Horizontal coordinate for the mouse cursor.</short>
</element>
<element name="TCustomDBGrid.MouseToRecordOffset.y">
<short>Vertical coordinate for the mouse cursor.</short>
</element>
<element name="TCustomDBGrid.MouseToRecordOffset.Column">
<short>
TColumn instance for the cell under the mouse cursor, or <b>Nil</b> if the
cell is a fixed title cell.
</short>
</element>
<element name="TCustomDBGrid.MouseToRecordOffset.RecordOffset">
<short>
Offset to the row under the mouse cursor relative to the value in Row.
</short>
</element>
<element name="TCustomDBGrid.ExecuteAction">
<short>
Executes the specified action in the DataLink for the grid control.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TComponent.ExecuteAction">TComponent.ExecuteAction</link>
</seealso>
</element>
<element name="TCustomDBGrid.ExecuteAction.Result">
<short><b>True</b> DataLink is assigned, and the action was executed.</short>
</element>
<element name="TCustomDBGrid.ExecuteAction.AAction">
<short>Action executed in the method.</short>
</element>
<element name="TCustomDBGrid.UpdateAction">
<short>
Updates the specified action using the DataLink for the grid control.
</short>
<descr/>
<seealso>
<link id="#rtl.classes.TComponent.UpdateAction">TComponent.UpdateAction</link>
</seealso>
</element>
<element name="TCustomDBGrid.UpdateAction.Result">
<short>
<b>True</b> if DataLink is assigned, and the action was updated in the method.
</short>
</element>
<element name="TCustomDBGrid.UpdateAction.AAction">
<short>Action updated in the method.</short>
</element>
<element name="TCustomDBGrid.SaveToFile">
<short>
Sets SaveOptions to write design-time settings for the grid, and stores the
values to the specified file name.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.SaveToFile.FileName">
<short>
Qualified file name where the design-time values for the grid control are
stored.
</short>
</element>
<element name="TCustomDBGrid.SaveToStream">
<short>
Sets SaveOptions to write design-time settings for the grid, and stores the
values to the specified stream.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.SaveToStream.AStream">
<short>
Stream where the design-time settings for the grid control are stored.
</short>
</element>
<element name="TCustomDBGrid.LoadFromFile">
<short>
Loads design-time settings for the grid control from the specified file name.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.LoadFromFile.FileName">
<short>
Qualified file name with the design-time settings loaded in the method.
</short>
</element>
<element name="TCustomDBGrid.LoadFromStream">
<short>
Loads design-time setting for the grid control from the specified stream.
</short>
<descr/>
<seealso/>
</element>
<element name="TCustomDBGrid.LoadFromStream.AStream">
<short>Stream with the design-time settings loaded in the method.</short>
</element>
<element name="TCustomDBGrid.AllowOutboundEvents" link="#lcl.grids.TCustomGrid.AllowOutboundEvents"/>
<element name="TCustomDBGrid.SelectedField">
<short>
Field that reads and writes data for the currently selected column.
</short>
<descr>
<p>
<var>SelectedField</var> is a TField property with the Field used to read and
write data for the selected column in the grid control. SelectedField is
updated when column navigation occurs in the control.
</p>
<p>
GetCurrentField is the read access specifier for the property, and returns
the TField instance derived by GetFieldFromGridColumn for the selected
column. SetCurrentField is the write access specifier for the property, and
stores the new Field value as the selected column. No action is performed if
the new Field value is the same as the current value for the property.
</p>
<p>
SelectedField is used in the implementation of various method in the control,
such as: KeyDown, SelectEditor, UpdateData, and SwapCheckBox.
</p>
<p>
Use SelectedColumn to get the TColumn instance for the currently selected
cell in the grid control.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SelectedIndex">
<short>
Ordinal position of the selected column in the grid control.
</short>
<descr>
<p>
<var>SelectedIndex</var> is an Integer property that represents the ordinal
position of the selected column in the grid control. The property value
contains the result from ColumnIndexFromGridColumn when the Columns
collection is enabled in the control. Otherwise, the value from
FieldIndexFromGridColumn is used as the property value.
</p>
<p>
GetSelectedIndex is the read access specifier for the property value.
SetSelectedIndex is the write access specifier for the property.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SelectedColumn">
<short>
Represents the currently selected column in the grid control.
</short>
<descr>
<p>
<var>SelectedColumn</var> is a read-only TColumn property that represents the
currently selected column in the grid control. SelectedColumn contains a
value only when the Columns collection has been enabled (or contains visible
columns) for the control. Otherwise, SelectedColumn returns the value
<b>Nil</b>.
</p>
<p>
GetCurrentColumn is the read access specifier for the property value, and
returns the TColumn instance in Columns at the position specified in
SelectedIndex.
</p>
</descr>
<seealso></seealso>
</element>
<element name="TCustomDBGrid.SelectedFieldRect">
<short>Display rectangle for the selected cell in the grid control.</short>
<descr>
<p>
<var>SelectedFieldRect</var> is a read-only <var>TRect</var> property which
contains the display rectangle for the cell at the position in the
<var>Col</var> and <var>Row</var> properties. Calls <var>CellRect</var> to
get the value for the property.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDbGrid.LastColumn">
<short>Contains the last visible column in the grid control.</short>
<descr>
<p>
<var>LastColumn</var> is a read-only <var>TColumn</var> property which
contains the last visible column for the grid control. Calls
<var>GetLastVisibleColumn</var> and <var>ColumnIndexFromGridColumn</var> to
get the ordinal position for the column. The property value is <b>Nil</b> if
the column number was not found.
</p>
</descr>
<seealso/>
</element>
<element name="TCustomDbGrid.FirstColumn">
<short>Contains the first visible column for the grid control.</short>
<descr>
<p>
<var>FirstColumn</var> is a read-only <var>TColumn</var> property which
contains the first visible column for the grid control. FirstColumn calls
<var>GetFirstVisibleColumn</var> and <var>ColumnIndexFromGridColumn</var> to
get the ordinal position for the first visible column. The property value is
<b>Nil</b> if the column number was not found.
</p>
</descr>
<seealso>
<link id="TColumn"/>
<link id="#lcl.grids.TCustomGrid.GetFirstVisibleColumn">TCustomGrid.GetFirstVisibleColumn</link>
<link id="#lcl.grids.TCustomGrid.ColumnIndexFromGridColumn">TCustomGrid.ColumnIndexFromGridColumn</link>
</seealso>
</element>
<element name="TCustomDBGrid.DataSource">
<short>
Provides access to the dataset displayed in the grid.
</short>
<descr>
<p>
<var>DataSource</var> is a <var>TDataSource</var> property which provides
access to the DataSet displayed in the database grid control. Read and write
access to the property are redirected to the DataLink property.
</p>
<p>
Reading the value for DataSource returns the corresponding value stored in
the <var>TComponentDataLink</var> instance.
</p>
<p>
Writing the value for DataSource sets the value in the TComponentDataLink
instance (when they are not the same). Write access to DataSource also resets
the width of columns in the grid by calling RenewColWidths.
<var>UpdateActive</var> is called to redraw the grid control after changes to
the DataSource and Columns properties.
</p>
</descr>
<seealso>
<link id="TCustomDBGrid.DataSource"/>
<link id="TCustomDBGrid.DataLink"/>
<link id="TComponentDataLink"/>
<link id="#fcl.db.TDataSource">TDataSource</link>
</seealso>
</element>
<element name="TDBGrid">
<short>
Data-aware grid control used to display and edit rows and columns in a
dataset.
</short>
<descr>
<p>
<var>TDBGrid</var> is a data-aware version of <var>TStringGrid</var> used to
display and edit a Rows and Columns in a dataset.
</p>
<p>
TDBGrid inherits many of its properties from <link
id="#lcl.grids.TCustomGrid">TCustomGrid</link> and its immediate ancestor
<link id="TCustomDBGrid">TCustomDBGrid</link>.
</p>
</descr>
<seealso>
<link id="#lcl.dbctrls.HowToUseDataAwareControls">How To Use Data-Aware Controls</link>
<link id="#lcl.grids.HowToUseGrids">How To Use Grids</link>
</seealso>
</element>
<element name="TDBGrid.BorderColor" link="#lcl.grids.TCustomGrid.BorderColor"/>
<element name="TDBGrid.Canvas" link="#lcl.controls.TCustomControl.Canvas"/>
<element name="TDBGrid.DefaultTextStyle" link="#lcl.grids.TCustomGrid.DefaultTextStyle"/>
<element name="TDBGrid.EditorBorderStyle" link="#lcl.grids.TCustomGrid.EditorBorderStyle"/>
<element name="TDBGrid.EditorMode" link="#lcl.grids.TCustomGrid.EditorMode"/>
<element name="TDBGrid.ExtendedColSizing" link="#lcl.grids.TCustomGrid.ExtendedColSizing"/>
<element name="TDBGrid.FastEditing" link="#lcl.grids.TCustomGrid.FastEditing"/>
<element name="TDBGrid.FocusColor" link="#lcl.grids.TCustomGrid.FocusColor"/>
<element name="TDBGrid.FocusRectVisible" link="#lcl.grids.TCustomGrid.FocusRectVisible"/>
<element name="TDBGrid.GridLineColor" link="#lcl.grids.TCustomGrid.GridLineColor"/>
<element name="TDBGrid.GridLineStyle" link="#lcl.grids.TCustomGrid.GridLineStyle"/>
<element name="TDBGrid.InplaceEditor" link="#lcl.grids.TCustomGrid.InplaceEditor"/>
<element name="TDBGrid.SelectedColor" link="#lcl.grids.TCustomGrid.SelectedColor"/>
<element name="TDBGrid.SelectedRows" link="#lcl.dbgrids.TCustomDBGrid.SelectedRows"/>
<element name="TDBGrid.OnRowMoved" link="#lcl.dbgrids.TCustomDBGrid.OnRowMoved"/>
<element name="TDBGrid.Align" link="#lcl.controls.TControl.Align"/>
<element name="TDBGrid.AlternateColor" link="#lcl.grids.TCustomGrid.AlternateColor"/>
<element name="TDBGrid.Anchors" link="#lcl.controls.TControl.Anchors"/>
<element name="TDBGrid.AutoAdvance">
<short>Sets the auto advance option for the grid control.</short>
<descr>
<p>
<var>AutoAdvance</var> is a published property in <var>TDBGrid</var> which
sets the option used in the grid control. The default value for the property
is <var>aaRightDown</var>.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.AutoAdvance">TCustomGrid.AutoAdvance</link>
</seealso>
</element>
<element name="TDBGrid.AutoEdit" link="#lcl.grids.TCustomGrid.AutoEdit"/>
<element name="TDBGrid.AutoFillColumns" link="#lcl.grids.TCustomGrid.AutoFillColumns"/>
<element name="TDBGrid.BiDiMode" link="#lcl.controls.TControl.BiDiMode"/>
<element name="TDBGrid.BorderSpacing" link="#lcl.controls.TControl.BorderSpacing"/>
<element name="TDBGrid.BorderStyle">
<short>Border style drawn around the grid control.</short>
<descr>
<remark>
A restricted set of options are available for the grid control:
<var>bsNone</var> or <var>bsSingle</var>.
</remark>
</descr>
<seealso>
<link id="#lcl.Controls.TWinControl.BorderStyle">TWinControl.BorderStyle</link>
</seealso>
</element>
<element name="TDBGrid.CellHintPriority" link="#lcl.grids.TCustomGrid.CellHintPriority"/>
<element name="TDBGrid.Color" link="#lcl.controls.TControl.Color"/>
<!-- published in 3.0 -->
<element name="TDBGrid.ColRowDraggingCursor" link="#lcl.grids.TCustomGrid.ColRowDraggingCursor"/>
<element name="TDBGrid.ColRowDragIndicatorColor" link="#lcl.grids.TCustomGrid.ColRowDragIndicatorColor"/>
<element name="TDBGrid.ColSizingCursor" link="#lcl.grids.TCustomGrid.ColSizingCursor"/>
<element name="TDBGrid.Columns">
<short>
Defines the dataset fields and their editing characteristics on the grid
control.
</short>
<descr>
<p>
Refers to the physical columns of the grid displaying the contents of the
relevant <var>Fields</var>.
</p>
<p>
The <var>Columns</var> property is configurable from the Object Inspector
selecting the ellipsis (...) next to the property name in which case a pop-up
memo box appears to allow editing. It deals with things like the size shape
and format of the display and contains a link to the appropriate Field.
</p>
<p>
Do not confuse Grid columns (in the display) with the SQL usage of COLUMNS
(Fields in our environment). The Fields consist of a series of cells arranged
in Records which contain the actual data which are to be displayed and
operated upon.
</p>
<p>
It is entirely possible that Fields in the dataset are not displayed, and the
result is that Field order in a dataset may not correspond directly to the
column order in a database grid; in fact the <var>Columns</var> property
allows the user to configure which data Field is to be displayed in each
column.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.Columns">TCustomGrid.Columns</link>
</seealso>
</element>
<element name="TDBGrid.Constraints" link="#lcl.controls.TControl.Constraints"/>
<element name="TDBGrid.DataSource" link="#lcl.dbgrids.TCustomDBGrid.DataSource"/>
<element name="TDBGrid.DefaultDrawing" link="#lcl.grids.TCustomGrid.DefaultDrawing"/>
<element name="TDBGrid.DefaultRowHeight">
<short>Default height for rows drawn in the grid control.</short>
<descr>
<p>
<var>DefaultRowHeight</var> is an <var>Integer</var> property that contains
the default height used for rows drawn in the grid control. If new rows of
the grid are created by changing the <var>RowCount</var> property, the height
of these new rows will be set to the value of the <var>DefaultRowHeight</var>
property.
</p>
<p>
When the <var>Options</var> property includes the appropriate value, the row
height may be changed at run-time.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.DefaultRowHeight">TCustomGrid.DefaultRowHeight</link>
<link id="#lcl.grids.TCustomGrid.Options">TCustomGrid.Options</link>
</seealso>
</element>
<element name="TDBGrid.DoubleBuffered" link="#lcl.controls.TWinControl.DoubleBuffered"/>
<element name="TDBGrid.DragCursor" link="#lcl.controls.TControl.DragCursor"/>
<element name="TDBGrid.DragMode" link="#lcl.controls.TControl.DragMode"/>
<element name="TDBGrid.Enabled">
<short>
Determines if the grid control is enabled for navigation and editing.
</short>
<descr>
<p>
<var>Enabled</var> is a published property in TDBGrid that determines if the
control is available for editing and navigation. When <var>Enabled</var>
contains <var>False</var>, the control usually appears 'greyed-out' or
unavailable.
</p>
<p>
Use the <var>Visible</var> property to determine whether the control is
displayed or hidden.
</p>
</descr>
<seealso>
<link id="#lcl.Controls.TControl.Enabled">TControl.Enabled</link>
</seealso>
</element>
<element name="TDBGrid.FixedColor" link="#lcl.grids.TCustomGrid.FixedColor"/>
<element name="TDBGrid.FixedCols" link="#lcl.grids.TCustomGrid.FixedCols"/>
<element name="TDBGrid.FixedHotColor" link="#lcl.grids.TCustomGrid.FixedHotColor"/>
<element name="TDBGrid.Flat" link="#lcl.grids.TCustomGrid.Flat"/>
<element name="TDBGrid.Font" link="#lcl.controls.TControl.Font"/>
<element name="TDBGrid.HeaderHotZones" link="#lcl.grids.TCustomGrid.HeaderHotZones"/>
<element name="TDBGrid.HeaderPushZones" link="#lcl.grids.TCustomGrid.HeaderPushZones"/>
<element name="TDBGrid.Options" link="#lcl.dbgrids.TCustomDBGrid.Options"/>
<element name="TDBGrid.Options2" link="#lcl.grids.TCustomGrid.Options2"/>
<element name="TDBGrid.OptionsExtra" link="#lcl.dbgrids.TCustomDBGrid.OptionsExtra"/>
<element name="TDBGrid.ParentBiDiMode" link="#lcl.controls.TControl.ParentBiDiMode"/>
<element name="TDBGrid.ParentColor">
<short>
Uses the Color from the Parent control, when enabled.
</short>
<descr>
<p>
ParentColor determines if the control should use the Color from the Parent
control, when enabled. The default value for the property is <b>False</b> in
TDBGrid.
</p>
<p>
When this property is <b>True</b>, all changes to the Color of the parent
will also be applied to the Color of the control, ensuring that they both
contain same value. If the Color of the control is changed by the
application, then ParentColor will be automatically set to <b>False</b>.
</p>
<p>
Using ParentColor when the Color value is clDefault can cause problems in
resolving the actual color value. To obtain the Color property of a control
while taking into account clDefault and ParentColor, use the
GetColorResolvingParent method. This method might return a non-RGB color, but
will never return clDefault. To obtain a purely RGB result use the
GetRGBColorResolvingParent method.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.ParentColor">TControl.ParentColor</link>
<link id="#lcl.controls.TControl.Color">TControl.Color</link>
<link id="#lcl.controls.TControl.GetColorResolvingParent">TControl.GetColorResolvingParent</link>
<link id="#lcl.controls.TControl.GetRGBColorResolvingParent">TControl.GetRGBColorResolvingParentParent</link>
</seealso>
</element>
<element name="TDBGrid.ParentDoubleBuffered" link="#lcl.controls.TWinControl.ParentDoubleBuffered"/>
<element name="TDBGrid.ParentFont" link="#lcl.controls.TControl.ParentFont"/>
<element name="TDBGrid.PopupMenu" link="#lcl.controls.TControl.PopupMenu"/>
<element name="TDBGrid.ReadOnly" link="#lcl.dbgrids.TCustomDBGrid.ReadOnly"/>
<element name="TDBGrid.Scrollbars">
<short>Scroll bars displayed for the grid control.</short>
<descr>
<p>
<var>ScrollBars</var> is a <var>TScrollStyle</var> property which indicates
the scroll bars displayed for the grid control. The default value for the
property is ssBoth in TDBGrid, and causes vertical and horizontal scroll bars
to be displayed.
</p>
<p>
See TScrollStyle for more information about values in the enumeration and
their meanings.
</p>
</descr>
<seealso>
<link id="#lcl.grids.TCustomGrid.ScrollBars">TCustomGrid.ScrollBars</link>
<link id="#lcl.stdctrls.TScrollStyle">TScrollStyle</link>
</seealso>
</element>
<element name="TDBGrid.ShowHint">
<short>
Controls whether the <var>Hint</var> is displayed for the control.
</short>
<descr>
<p>
Controls whether the value in the <var>Hint</var> property is shown when the
mouse hovers over the control. If a value is stored for the property a
storage flag is set.
</p>
<p>
Display of the actual hint is performed by the <var>OnShowHint</var> event
handler.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TControl.ShowHint">TControl.ShowHint</link>
</seealso>
</element>
<element name="TDBGrid.TabAdvance" link="#lcl.grids.TCustomGrid.TabAdvance"/>
<element name="TDBGrid.TabOrder" link="#lcl.controls.TWinControl.TabOrder"/>
<element name="TDBGrid.TabStop" link="#lcl.controls.TWinControl.TabStop"/>
<element name="TDBGrid.TitleFont" link="#lcl.grids.TCustomGrid.TitleFont"/>
<element name="TDBGrid.TitleImageList" link="#lcl.grids.TCustomGrid.TitleImageList"/>
<element name="TDBGrid.TitleStyle" link="#lcl.grids.TCustomGrid.TitleStyle"/>
<element name="TDBGrid.UseXORFeatures" link="#lcl.grids.TCustomGrid.UseXORFeatures"/>
<element name="TDBGrid.Visible">
<short>
<var>Visible</var> controls whether the grid control is visible.
</short>
<descr>
<p>
The <var>Visible</var> property controls the ability to see a visual control.
If Visible is <b>True</b> the control is shown otherwise it is hidden.
Calling Show sets among other properties Visible to <b>True</b>. Setting
Visible to <b>False</b> is equivalent to calling Hide method.
</p>
<remark>
The Visible property does not depend on control's parent visibility. Use
IsVisible method to consider this and get real visibility.
</remark>
</descr>
<seealso>
<link id="#lcl.controls.TControl.Visible">TControl.Visible</link>
</seealso>
</element>
<element name="TDBGrid.OnCellClick" link="#lcl.dbgrids.TCustomDBGrid.OnCellClick"/>
<element name="TDBGrid.OnColEnter" link="#lcl.dbgrids.TCustomDBGrid.OnColEnter"/>
<element name="TDBGrid.OnColExit" link="#lcl.dbgrids.TCustomDBGrid.OnColExit"/>
<element name="TDBGrid.OnColumnMoved" link="#lcl.dbgrids.TCustomDBGrid.OnColumnMoved"/>
<element name="TDBGrid.OnColumnSized" link="#lcl.dbgrids.TCustomDBGrid.OnColumnSized"/>
<element name="TDBGrid.OnContextPopup" link="#lcl.controls.TControl.OnContextPopup"/>
<element name="TDBGrid.OnDrawColumnCell" link="#lcl.dbgrids.TCustomDBGrid.OnDrawColumnCell"/>
<element name="TDBGrid.OnDrawColumnTitle" link="#lcl.dbgrids.TCustomDBGrid.OnDrawColumnTitle"/>
<element name="TDBGrid.OnDblClick" link="#lcl.controls.TControl.OnDblClick"/>
<element name="TDBGrid.OnDragDrop" link="#lcl.controls.TControl.OnDragDrop"/>
<element name="TDBGrid.OnDragOver" link="#lcl.controls.TControl.OnDragOver"/>
<element name="TDBGrid.OnEditButtonClick" link="#lcl.grids.TCustomGrid.OnEditButtonClick"/>
<element name="TDBGrid.OnEditingDone" link="#lcl.controls.TControl.OnEditingDone"/>
<element name="TDBGrid.OnEndDrag" link="#lcl.controls.TControl.OnEndDrag"/>
<element name="TDBGrid.OnEnter" link="#lcl.controls.TWinControl.OnEnter"/>
<element name="TDBGrid.OnExit" link="#lcl.controls.TWinControl.OnExit"/>
<element name="TDBGrid.OnFieldEditMask" link="#lcl.dbgrids.TCustomDBGrid.OnFieldEditMask"/>
<element name="TDBGrid.OnGetCellHint" link="#lcl.dbgrids.TCustomDBGrid.OnGetCellHint"/>
<element name="TDBGrid.OnKeyDown">
<short>
Event handler signalled when a key is down while the control has focus.
</short>
<descr>
<p>
<var>OnKeyDown</var> is a TKeyEvent event handler signalled when a key is
down while the control has focus. OnKeyDown is called from the KeyDown method
when processing keys specific to the data-aware grid.
</p>
<p>
<var>OnKeyDown</var> differs from <link
id="#lcl.controls.TWinControl.OnKeyPress">OnKeyPress</link>. With
<var>OnKeyDown</var> the key may have already been down when the control
receives focus. With <var>OnKeyPress</var> the key needs to become pressed
while the control has focus.
</p>
</descr>
<seealso>
<link id="TDBGrid.OnKeyPress">TDBGrid.OnKeyPress</link>
<link id="TDBGrid.OnKeyUp">TDBGrid.OnKeyUp</link>
<link id="#lcl.controls.TKeyEvent">TKeyEvent</link>
<link id="#lcl.controls.TWinControl.OnKeyDown">TWinControl.OnKeyDown</link>
</seealso>
</element>
<element name="TDBGrid.OnKeyPress">
<short>Event handler signalled for the key press event.</short>
<descr>
<p>
<var>OnKeyPress</var> is an event controller for a key being pressed while
the control has focus.
</p>
<p>
<var>OnKeyPress</var> differs from <link
id="#lcl.controls.TWinControl.OnKeyDown">OnKeyDown</link> in that the key
needs to become pressed while the control has focus; with
<var>OnKeyDown</var> the key may have already been down when the control
received focus.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.OnKeyPress">TWinControl.OnKeyPress</link>
</seealso>
</element>
<element name="TDBGrid.OnKeyUp">
<short>Event handler signalled for a key up event.</short>
<descr>
<p>
<var>OnKeyUp</var> is an event handler for instance when a key is up (not
pressed) while the control has focus.
</p>
<p>
The key may already have been up when the control received focus or a pressed
key may become released during the time the control has focus.
</p>
</descr>
<seealso>
<link id="#lcl.controls.TWinControl.OnKeyUp">TWinControl.OnKeyUp</link>
</seealso>
</element>
<element name="TDBGrid.OnMouseDown" link="#lcl.controls.TControl.OnMouseDown"/>
<element name="TDBGrid.OnMouseEnter" link="#lcl.controls.TControl.OnMouseEnter"/>
<element name="TDBGrid.OnMouseLeave" link="#lcl.controls.TControl.OnMouseLeave"/>
<element name="TDBGrid.OnMouseMove" link="#lcl.controls.TControl.OnMouseMove"/>
<element name="TDBGrid.OnMouseUp" link="#lcl.controls.TControl.OnMouseUp"/>
<element name="TDBGrid.OnMouseWheel" link="#lcl.controls.TControl.OnMouseWheel"/>
<element name="TDBGrid.OnMouseWheelDown" link="#lcl.controls.TControl.OnMouseWheelDown"/>
<element name="TDBGrid.OnMouseWheelUp" link="#lcl.controls.TControl.OnMouseWheelUp"/>
<element name="TDBGrid.OnPrepareCanvas" link="#lcl.dbgrids.TCustomDBGrid.OnPrepareCanvas"/>
<element name="TDBGrid.OnSelectEditor" link="#lcl.dbgrids.TCustomDBGrid.OnSelectEditor"/>
<element name="TDBGrid.OnStartDrag" link="#lcl.controls.TControl.OnStartDrag"/>
<element name="TDBGrid.OnTitleClick" link="#lcl.dbgrids.TCustomDBGrid.OnTitleClick"/>
<element name="TDBGrid.OnUserCheckboxBitmap" link="#lcl.grids.TCustomGrid.OnUserCheckboxBitmap"/>
<element name="TDBGrid.OnUserCheckBoxImage" link="#lcl.grids.TCustomGrid.OnUserCheckBoxImage"/>
<element name="TDBGrid.OnUserCheckBoxState" link="#lcl.dbgrids.TCustomDBGrid.OnUserCheckBoxState"/>
<element name="TDBGrid.OnUTF8KeyPress" link="#lcl.controls.TWinControl.OnUTF8KeyPress"/>
<element name="Register">
<short>Registers components in the unit for use in the Lazarus IDE.</short>
<descr>
<p>
Register calls RegisterComponents to add components in the unit to the
component palette in the Lazarus IDE, including:
</p>
<p>
<b>Data Controls</b> Tab
</p>
<ul>
<li>TDBGrid</li>
</ul>
</descr>
</element>
</module>
<!-- DBGrids -->
</package>
</fpdoc-descriptions>
|