hi,
I want to set multiple headers's text.the grid named grd1 which has 3 columns.
and now it has 5 row headers added:
grd1.Model.Rows.HeaderCount = 5;
grd1[1, 1].Text = "sss";
grd1[1, 2].Text = "2";
grd1[1, 3].Text = "3";
the above code can be excuted correctly,but the next code throw a exception "System.ArgumentOutOfRangeException":
grd1[2, 1].Text = "sss";
Why can't I assign the text of the cell(2,1)?