Skip to content

Added CaseSentitive to ExcelDataTableConfiguration.#732

Merged
appel1 merged 1 commit into
ExcelDataReader:developfrom
kevin-frugier:kfrugier/dataset-casesensitive
Apr 9, 2026
Merged

Added CaseSentitive to ExcelDataTableConfiguration.#732
appel1 merged 1 commit into
ExcelDataReader:developfrom
kevin-frugier:kfrugier/dataset-casesensitive

Conversation

@kevin-frugier

Copy link
Copy Markdown
Contributor

This allows the creation of a primary key after case sensitive data is loaded from Excel.

This allows the creation of a primary key after case sensitive data is loaded from Excel.
@kevin-frugier

Copy link
Copy Markdown
Contributor Author

Technically, this can also simply be replaced, for users, by leaving ExcelDataTable untouched and calling this on your resulting DataTable:

 public static DataTable MakeCaseSentive(DataTable srcTable)
 {
     DataTable dstTable = srcTable.Clone();
     dstTable.CaseSensitive = true;
     foreach (DataRow row in srcTable.Rows)
     {
         dstTable.ImportRow(row);
     }
     return dstTable;
 }

@appel1 appel1 merged commit af9e943 into ExcelDataReader:develop Apr 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants