[Solved] add 10 empty rows to gridview [closed]


var list = new List<string>();

for (int i = 0; i < 10; i++)
{
    list.Add(string.Empty);
}
gv_Others.DataSource = list;
gv_Others.DataBind();

This is the quickest and dirtiest way I could think of, would I write something like this? No. But then I’m sure you have your reasons, would have been better if you’d written in your question what you were trying to achieve then we could have helped more and your question wouldn’t have got marked down.

2

solved add 10 empty rows to gridview [closed]