Hello Jassim, It is because Indexing start from 0 not from 1. Look, Your gridContacts.RowCount will return 10, if you have 10 rows and your for loop will be executed 11 times. In grid, there are only 10 records, so last record will be blank line. So, start index from i = 1 or use i < gridContacts.RowCount But by looking at your code, you should use i < gridContacts.RowCount. Otherwise you have to change some of your code too. Thanks... Have Fun ;P :cool:
S
Shrutik Panchal
@Shrutik Panchal