Hi Kulabhishek,
I have made a test by my side, the CellPaintin event of theDataGridView in my user controloccurs when my app is running. If it didn't hit for e.RowIndex==16, check whether there are 17 rows in your DataGridView.
But I don't know exactly your situation. If convenience, wouldyou like toshare more details as the data stucture of your DataGridView or the code in your CellPaiting event?
If there's any problem, please feel free to let me know.
Best regards, Steven Yu |