I have to build some data storing application for my office works. With this application I planned to store MAC address and Windows licensee Keys in Mysql database. I decided to store MAC address and windows keys encrypted rather than plain text. To do this I use this encryption method
My problem is when I finally decrypt the data in data-grid view the it start to lag so badly. Even with the populating data as well as scrolling.
this is a code that I used to decrypt data-grid view data.
private void pc_count_grid_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 3)
{
e.Value = Decrypt(e.Value.ToString());
}
if (e.ColumnIndex == 4)
{
e.Value = Decrypt(e.Value.ToString());
}
}
How can I improve performance of the data-grid view while decrypting the data in cell formatting ?