I'm new in C# and I have an array with different values as shown below
int[] array = { 1, 2, 3, 4, 5, 6 };
I need to do is to relate the value of the array with the id of a data in my database in Sqlserver, Example, the first value for my array is 1, and the value from my data Id is also 1, I need show in a DataGrid the the name or information that this id holds.
DataBase Example:
id 1 , name Francisco, serial_number 1234
id 2 , name Claudio, serial_number 4321