[{"data":1,"prerenderedAt":775},["ShallowReactive",2],{"content-query-nuQUJ21mMm":3,"navigation":443},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"body":11,"_type":436,"_id":437,"_source":438,"_file":439,"_stem":440,"_extension":441,"sitemap":442},"/document/data","document",false,"","データ管理","ReoGridのデータソース、フィルタリング、バリデーション、条件付き書式、グループ化、ワークシート保護。","2025-12-24",{"type":12,"children":13,"toc":432},"root",[14,22,28,327,332,426],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19],{"type":20,"value":21},"text","ReoGridには、ワークシートデータのバインディング、フィルタリング、バリデーション、保護のための包括的なデータ管理機能が含まれています。これらの機能を組み合わせて、データ駆動型のスプレッドシートアプリケーションを構築できます。",{"type":15,"tag":23,"props":24,"children":26},"h2",{"id":25},"クイックリファレンス",[27],{"type":20,"value":25},{"type":15,"tag":29,"props":30,"children":34},"pre",{"className":31,"code":32,"language":33,"meta":7,"style":7},"language-cs shiki shiki-themes github-light github-dark github-light","// Bind a data source\nsheet.DataSource = new DataTableSource(myDataTable);\n\n// Add auto filter to column headers\nsheet.CreateColumnFilter(\"A\", \"E\",\n    new AutoColumnFilterUI());\n\n// Add data validation\nsheet.SetRangeDataValidation(\"B2:B100\",\n    new DataValidationAttribute {\n        InputType = DataValidationType.Integer,\n        MinValue = 1, MaxValue = 100\n    });\n\n// Protect the worksheet\nsheet.SetSettings(WorksheetSettings.Edit_Readonly, true);\n","cs",[35],{"type":15,"tag":36,"props":37,"children":38},"code",{"__ignoreMap":7},[39,51,83,93,102,142,161,169,178,204,222,240,273,282,290,299],{"type":15,"tag":40,"props":41,"children":44},"span",{"class":42,"line":43},"line",1,[45],{"type":15,"tag":40,"props":46,"children":48},{"style":47},"--shiki-light:#6A737D;--shiki-dark:#6A737D;--shiki-default:#6A737D",[49],{"type":20,"value":50},"// Bind a data source\n",{"type":15,"tag":40,"props":52,"children":54},{"class":42,"line":53},2,[55,61,67,72,78],{"type":15,"tag":40,"props":56,"children":58},{"style":57},"--shiki-light:#24292E;--shiki-dark:#E1E4E8;--shiki-default:#24292E",[59],{"type":20,"value":60},"sheet.DataSource ",{"type":15,"tag":40,"props":62,"children":64},{"style":63},"--shiki-light:#D73A49;--shiki-dark:#F97583;--shiki-default:#D73A49",[65],{"type":20,"value":66},"=",{"type":15,"tag":40,"props":68,"children":69},{"style":63},[70],{"type":20,"value":71}," new",{"type":15,"tag":40,"props":73,"children":75},{"style":74},"--shiki-light:#6F42C1;--shiki-dark:#B392F0;--shiki-default:#6F42C1",[76],{"type":20,"value":77}," DataTableSource",{"type":15,"tag":40,"props":79,"children":80},{"style":57},[81],{"type":20,"value":82},"(myDataTable);\n",{"type":15,"tag":40,"props":84,"children":86},{"class":42,"line":85},3,[87],{"type":15,"tag":40,"props":88,"children":90},{"emptyLinePlaceholder":89},true,[91],{"type":20,"value":92},"\n",{"type":15,"tag":40,"props":94,"children":96},{"class":42,"line":95},4,[97],{"type":15,"tag":40,"props":98,"children":99},{"style":47},[100],{"type":20,"value":101},"// Add auto filter to column headers\n",{"type":15,"tag":40,"props":103,"children":105},{"class":42,"line":104},5,[106,111,116,121,127,132,137],{"type":15,"tag":40,"props":107,"children":108},{"style":57},[109],{"type":20,"value":110},"sheet.",{"type":15,"tag":40,"props":112,"children":113},{"style":74},[114],{"type":20,"value":115},"CreateColumnFilter",{"type":15,"tag":40,"props":117,"children":118},{"style":57},[119],{"type":20,"value":120},"(",{"type":15,"tag":40,"props":122,"children":124},{"style":123},"--shiki-light:#032F62;--shiki-dark:#9ECBFF;--shiki-default:#032F62",[125],{"type":20,"value":126},"\"A\"",{"type":15,"tag":40,"props":128,"children":129},{"style":57},[130],{"type":20,"value":131},", ",{"type":15,"tag":40,"props":133,"children":134},{"style":123},[135],{"type":20,"value":136},"\"E\"",{"type":15,"tag":40,"props":138,"children":139},{"style":57},[140],{"type":20,"value":141},",\n",{"type":15,"tag":40,"props":143,"children":145},{"class":42,"line":144},6,[146,151,156],{"type":15,"tag":40,"props":147,"children":148},{"style":63},[149],{"type":20,"value":150},"    new",{"type":15,"tag":40,"props":152,"children":153},{"style":74},[154],{"type":20,"value":155}," AutoColumnFilterUI",{"type":15,"tag":40,"props":157,"children":158},{"style":57},[159],{"type":20,"value":160},"());\n",{"type":15,"tag":40,"props":162,"children":164},{"class":42,"line":163},7,[165],{"type":15,"tag":40,"props":166,"children":167},{"emptyLinePlaceholder":89},[168],{"type":20,"value":92},{"type":15,"tag":40,"props":170,"children":172},{"class":42,"line":171},8,[173],{"type":15,"tag":40,"props":174,"children":175},{"style":47},[176],{"type":20,"value":177},"// Add data validation\n",{"type":15,"tag":40,"props":179,"children":181},{"class":42,"line":180},9,[182,186,191,195,200],{"type":15,"tag":40,"props":183,"children":184},{"style":57},[185],{"type":20,"value":110},{"type":15,"tag":40,"props":187,"children":188},{"style":74},[189],{"type":20,"value":190},"SetRangeDataValidation",{"type":15,"tag":40,"props":192,"children":193},{"style":57},[194],{"type":20,"value":120},{"type":15,"tag":40,"props":196,"children":197},{"style":123},[198],{"type":20,"value":199},"\"B2:B100\"",{"type":15,"tag":40,"props":201,"children":202},{"style":57},[203],{"type":20,"value":141},{"type":15,"tag":40,"props":205,"children":207},{"class":42,"line":206},10,[208,212,217],{"type":15,"tag":40,"props":209,"children":210},{"style":63},[211],{"type":20,"value":150},{"type":15,"tag":40,"props":213,"children":214},{"style":74},[215],{"type":20,"value":216}," DataValidationAttribute",{"type":15,"tag":40,"props":218,"children":219},{"style":57},[220],{"type":20,"value":221}," {\n",{"type":15,"tag":40,"props":223,"children":225},{"class":42,"line":224},11,[226,231,235],{"type":15,"tag":40,"props":227,"children":228},{"style":57},[229],{"type":20,"value":230},"        InputType ",{"type":15,"tag":40,"props":232,"children":233},{"style":63},[234],{"type":20,"value":66},{"type":15,"tag":40,"props":236,"children":237},{"style":57},[238],{"type":20,"value":239}," DataValidationType.Integer,\n",{"type":15,"tag":40,"props":241,"children":243},{"class":42,"line":242},12,[244,249,253,259,264,268],{"type":15,"tag":40,"props":245,"children":246},{"style":57},[247],{"type":20,"value":248},"        MinValue ",{"type":15,"tag":40,"props":250,"children":251},{"style":63},[252],{"type":20,"value":66},{"type":15,"tag":40,"props":254,"children":256},{"style":255},"--shiki-light:#005CC5;--shiki-dark:#79B8FF;--shiki-default:#005CC5",[257],{"type":20,"value":258}," 1",{"type":15,"tag":40,"props":260,"children":261},{"style":57},[262],{"type":20,"value":263},", MaxValue ",{"type":15,"tag":40,"props":265,"children":266},{"style":63},[267],{"type":20,"value":66},{"type":15,"tag":40,"props":269,"children":270},{"style":255},[271],{"type":20,"value":272}," 100\n",{"type":15,"tag":40,"props":274,"children":276},{"class":42,"line":275},13,[277],{"type":15,"tag":40,"props":278,"children":279},{"style":57},[280],{"type":20,"value":281},"    });\n",{"type":15,"tag":40,"props":283,"children":285},{"class":42,"line":284},14,[286],{"type":15,"tag":40,"props":287,"children":288},{"emptyLinePlaceholder":89},[289],{"type":20,"value":92},{"type":15,"tag":40,"props":291,"children":293},{"class":42,"line":292},15,[294],{"type":15,"tag":40,"props":295,"children":296},{"style":47},[297],{"type":20,"value":298},"// Protect the worksheet\n",{"type":15,"tag":40,"props":300,"children":302},{"class":42,"line":301},16,[303,307,312,317,322],{"type":15,"tag":40,"props":304,"children":305},{"style":57},[306],{"type":20,"value":110},{"type":15,"tag":40,"props":308,"children":309},{"style":74},[310],{"type":20,"value":311},"SetSettings",{"type":15,"tag":40,"props":313,"children":314},{"style":57},[315],{"type":20,"value":316},"(WorksheetSettings.Edit_Readonly, ",{"type":15,"tag":40,"props":318,"children":319},{"style":255},[320],{"type":20,"value":321},"true",{"type":15,"tag":40,"props":323,"children":324},{"style":57},[325],{"type":20,"value":326},");\n",{"type":15,"tag":23,"props":328,"children":330},{"id":329},"このセクションの内容",[331],{"type":20,"value":329},{"type":15,"tag":333,"props":334,"children":335},"ul",{},[336,349,360,371,382,393,404,415],{"type":15,"tag":337,"props":338,"children":339},"li",{},[340,347],{"type":15,"tag":341,"props":342,"children":344},"a",{"href":343},"/document/data/datasource",[345],{"type":20,"value":346},"データソース",{"type":20,"value":348}," — .NET DataTable、コレクション、またはカスタムデータソースをワークシートにバインド",{"type":15,"tag":337,"props":350,"children":351},{},[352,358],{"type":15,"tag":341,"props":353,"children":355},{"href":354},"/document/data/data-filtering",[356],{"type":20,"value":357},"データフィルタリング",{"type":20,"value":359}," — カスタム条件でワークシートデータをプログラムでフィルタリング",{"type":15,"tag":337,"props":361,"children":362},{},[363,369],{"type":15,"tag":341,"props":364,"children":366},{"href":365},"/document/data/builtin-autofilter",[367],{"type":20,"value":368},"組み込みオートフィルター",{"type":20,"value":370}," — 列ヘッダーのExcelスタイルのドロップダウンフィルター",{"type":15,"tag":337,"props":372,"children":373},{},[374,380],{"type":15,"tag":341,"props":375,"children":377},{"href":376},"/document/data/conditional-filter",[378],{"type":20,"value":379},"条件付きフィルター",{"type":20,"value":381}," — 複雑な論理条件に基づいて行をフィルタリング",{"type":15,"tag":337,"props":383,"children":384},{},[385,391],{"type":15,"tag":341,"props":386,"children":388},{"href":387},"/document/data/conditional-styles",[389],{"type":20,"value":390},"条件付きスタイル",{"type":20,"value":392}," — セルの値に基づいてスタイルを動的に適用",{"type":15,"tag":337,"props":394,"children":395},{},[396,402],{"type":15,"tag":341,"props":397,"children":399},{"href":398},"/document/data/group-and-outline",[400],{"type":20,"value":401},"グループとアウトライン",{"type":20,"value":403}," — 展開/折りたたみコントロール付きの行と列のグループ化",{"type":15,"tag":337,"props":405,"children":406},{},[407,413],{"type":15,"tag":341,"props":408,"children":410},{"href":409},"/document/data/data-validation",[411],{"type":20,"value":412},"データバリデーション",{"type":20,"value":414}," — 型、範囲、カスタムルールによるユーザー入力の検証",{"type":15,"tag":337,"props":416,"children":417},{},[418,424],{"type":15,"tag":341,"props":419,"children":421},{"href":420},"/document/data/protection",[422],{"type":20,"value":423},"保護とロック",{"type":20,"value":425}," — ワークシートの保護と個々のセルのロック/ロック解除",{"type":15,"tag":427,"props":428,"children":429},"style",{},[430],{"type":20,"value":431},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":53,"depth":53,"links":433},[434,435],{"id":25,"depth":53,"text":25},{"id":329,"depth":53,"text":329},"markdown","content:document:5.data:1.index.md","content","document/5.data/1.index.md","document/5.data/1.index","md",{"loc":4},[444,751,754,757,760,763,766,769,772],{"title":445,"_path":446,"children":447},"Document","/document",[448,459,464,496,513,524,556,576,590,613,624,640,663,674,694,714,743],{"title":449,"_path":450,"children":451},"はじめに","/document/getting-started",[452,453,456],{"title":449,"_path":450},{"title":454,"_path":455},"インストール","/document/getting-started/installation",{"title":457,"_path":458},"V3 から V4 への移行ガイド","/document/getting-started/migrate-from-v3",{"title":460,"_path":461,"children":462},"ワークブック","/document/workbook",[463],{"title":460,"_path":461},{"title":465,"_path":466,"children":467},"ワークシート","/document/worksheet",[468,469,472,475,478,481,484,487,490,493],{"title":465,"_path":466},{"title":470,"_path":471},"行、列、ヘッダー","/document/worksheet/row-and-column",{"title":473,"_path":474},"範囲","/document/worksheet/range",{"title":476,"_path":477},"名前付き範囲","/document/worksheet/named-range",{"title":479,"_path":480},"セルの結合と解除","/document/worksheet/merge-and-unmerge",{"title":482,"_path":483},"パーシャルグリッド","/document/worksheet/partial-grid",{"title":485,"_path":486},"複数行ヘッダー","/document/worksheet/multiple-row-header",{"title":488,"_path":489},"ウィンドウ枠の固定","/document/worksheet/freeze",{"title":491,"_path":492},"ズーム","/document/worksheet/zoom",{"title":494,"_path":495},"設定とオプション","/document/worksheet/settings",{"title":497,"_path":498,"children":499},"選択とナビゲーション","/document/selection",[500,501,504,507,510],{"title":497,"_path":498},{"title":502,"_path":503},"フォーカスと選択","/document/selection/selection",{"title":505,"_path":506},"範囲の選択","/document/selection/pick-range",{"title":508,"_path":509},"クリップボード","/document/selection/clipboard",{"title":511,"_path":512},"テキスト検索","/document/selection/text-search",{"title":8,"_path":4,"children":514},[515,516,517,518,519,520,521,522,523],{"title":8,"_path":4},{"title":346,"_path":343},{"title":357,"_path":354},{"title":368,"_path":365},{"title":379,"_path":376},{"title":390,"_path":387},{"title":401,"_path":398},{"title":412,"_path":409},{"title":423,"_path":420},{"title":525,"_path":526,"children":527},"セル","/document/cell",[528,529,532,535,538,541,544,547,550,553],{"title":525,"_path":526},{"title":530,"_path":531},"セルの編集","/document/cell/cell-edit",{"title":533,"_path":534},"スタイル","/document/cell/style",{"title":536,"_path":537},"罫線","/document/cell/border",{"title":539,"_path":540},"データ書式","/document/cell/data-format",{"title":542,"_path":543},"カスタムデータフォーマッター","/document/cell/custom-data-formatter",{"title":545,"_path":546},"データ連続入力","/document/cell/auto-fill",{"title":548,"_path":549},"リッチフォーマットテキスト","/document/cell/rich-format-text",{"title":551,"_path":552},"セルテキストの回転","/document/cell/rotate-cell-text",{"title":554,"_path":555},"セルの反復処理","/document/cell/iterate-cells",{"title":557,"_path":558,"children":559},"セルタイプ","/document/cell-types",[560,561,564,567,570,573],{"title":557,"_path":558},{"title":562,"_path":563},"組み込みセルタイプ","/document/cell-types/built-in-cell-types",{"title":565,"_path":566},"カスタムセル","/document/cell-types/custom-cell",{"title":568,"_path":569},"ドロップダウンリストセル","/document/cell-types/dropdown-list-cell",{"title":571,"_path":572},"コンボリストセル","/document/cell-types/combo-list-cell",{"title":574,"_path":575},"列全体のセルタイプ","/document/cell-types/cells-type-for-entire-column",{"title":577,"_path":578,"children":579},"数式","/document/formula",[580,581,584,587],{"title":577,"_path":578},{"title":582,"_path":583},"カスタム関数","/document/formula/custom-function",{"title":585,"_path":586},"数式関数","/document/formula/formula-functions",{"title":588,"_path":589},"VLOOKUP","/document/formula/vlookup",{"title":591,"_path":592,"children":593},"チャート","/document/chart",[594,595,598,601,604,607,610],{"title":591,"_path":592},{"title":596,"_path":597},"縦棒グラフ","/document/chart/column-chart",{"title":599,"_path":600},"横棒グラフ","/document/chart/bar-chart",{"title":602,"_path":603},"折れ線グラフ","/document/chart/line-chart",{"title":605,"_path":606},"面グラフ","/document/chart/area-chart",{"title":608,"_path":609},"2D円グラフ","/document/chart/pie-2d-chart",{"title":611,"_path":612},"ドーナツグラフ","/document/chart/doughnut-chart",{"title":614,"_path":615,"children":616},"フローティングオブジェクト","/document/floating",[617,618,621],{"title":614,"_path":615},{"title":619,"_path":620},"描画シェイプ","/document/floating/drawing-shapes",{"title":622,"_path":623},"フローティング画像","/document/floating/floating-image",{"title":625,"_path":626,"children":627},"イベント","/document/events",[628,629,631,634,637],{"title":625,"_path":626},{"title":625,"_path":630},"/document/events/events",{"title":632,"_path":633},"キーボードイベント","/document/events/keyboard-events",{"title":635,"_path":636},"マウスイベント","/document/events/mouse-events",{"title":638,"_path":639},"SelectionRangeChanged","/document/events/selection-events",{"title":641,"_path":642,"children":643},"カスタマイズ","/document/customization",[644,645,648,651,654,657,660],{"title":641,"_path":642},{"title":646,"_path":647},"コントロールの外観","/document/customization/control-appearance",{"title":649,"_path":650},"シートタブコントロール","/document/customization/sheet-tab-control",{"title":652,"_path":653},"使用可能なホットキー","/document/customization/hot-keys",{"title":655,"_path":656},"言語ローカライズ","/document/customization/language-localization",{"title":658,"_path":659},"アドレスバーと数式バー","/document/customization/formula-bar",{"title":661,"_path":662},"ReoGridEditor","/document/customization/editor",{"title":664,"_path":665,"children":666},"アクション","/document/actions",[667,668,671],{"title":664,"_path":665},{"title":669,"_path":670},"ReoGridアクションフレームワーク","/document/actions/actions",{"title":672,"_path":673},"組み込みワークシートアクション","/document/actions/built-in-actions",{"title":675,"_path":676,"children":677},"ファイル形式","/document/io",[678,679,682,685,688,691],{"title":675,"_path":676},{"title":680,"_path":681},"Excelファイル形式 (xlsx)","/document/io/excel-file-format",{"title":683,"_path":684},"CSV形式","/document/io/csv-format",{"title":686,"_path":687},"RGF形式","/document/io/rgf-format",{"title":689,"_path":690},"Excel形式とRGF形式の違い","/document/io/difference-between-excel-and-rgf-format",{"title":692,"_path":693},"HTMLとしてエクスポート","/document/io/export-as-html",{"title":695,"_path":696,"children":697},"高度な機能","/document/advanced",[698,699,702,705,708,711],{"title":695,"_path":696},{"title":700,"_path":701},"メモリワークブック","/document/advanced/memory-workbook",{"title":703,"_path":704},"ページングと印刷","/document/advanced/paging-and-print",{"title":706,"_path":707},"コントロールのリセット","/document/advanced/reset-control",{"title":709,"_path":710},"パフォーマンス","/document/advanced/performance",{"title":712,"_path":713},"設定","/document/advanced/settings",{"title":715,"_path":716,"children":717},"ハウツーガイド","/document/how-to",[718,719,722,725,728,731,734,737,740],{"title":715,"_path":716},{"title":720,"_path":721},"ReoGridの推奨プラクティス","/document/how-to/recommended-practice-for-using-reogrid",{"title":723,"_path":724},"DataTableでスプレッドシートを埋める","/document/how-to/fill-grid-with-datatable",{"title":726,"_path":727},"遅延読み込みモードによる大量データの高速読み込み","/document/how-to/fast-load-large-data-with-lazy-load-mode",{"title":729,"_path":730},"カスタムドロップダウンセルの作成","/document/how-to/create-custom-drop-down-cell",{"title":732,"_path":733},"日付ピッカーセルの作成","/document/how-to/create-date-picker-cell",{"title":735,"_path":736},"Excelファイルからすべての画像を読み取る","/document/how-to/read-all-images-from-excel-file",{"title":738,"_path":739},"VB.NETでReoGridを使用するためのヒント","/document/how-to/use-reogrid-in-vb-net",{"title":741,"_path":742},"全選択チェックボックスヘッダーの作成","/document/how-to/create-select-all-checkbox-header",{"title":744,"_path":745,"children":746},"トラブルシューティング","/document/troubleshooting",[747,748],{"title":744,"_path":745},{"title":749,"_path":750},"PInvoke例外の修正","/document/troubleshooting/fix-pinvoke-exception",{"title":752,"_path":753},"エディション・機能一覧","/editions-features",{"title":755,"_path":756},"個人情報保護方針","/privacy-policy",{"title":758,"_path":759},"動作環境","/requirements",{"title":761,"_path":762},"ReoGrid利用許諾契約書","/terms",{"title":764,"_path":765},"ReoGrid利用許諾契約書(Ver.3)","/terms-v3",{"title":767,"_path":768},"ReoGrid利用許諾契約書(Ver.4)","/terms-v4",{"title":770,"_path":771},"ReoGrid 4 トライアルライセンスポリシー","/terms-v4-trial",{"title":773,"_path":774},"ReoGrid Web Edition 利用許諾契約書","/terms-web",1786025053098]