[IndexOutOfRangeException: There is no row at position 255.]
There would be defined number of rows in your grid.
It looks like value of
's'
is more then the row count.
dt_gridcom.Rows[s][k] = summary;
Make sure that the row number that you are trying to access exists.