how to wrap text in boundfield column in gridview

后端 未结 3 797
灰色年华
灰色年华 2021-01-01 01:45

i am having a boundfield column and in that column if i entered a string(without spaces) of length 15, there is no problem. But if the string is more than 15, the text is no

3条回答
  •  一向
    一向 (楼主)
    2021-01-01 02:05

    Sorry, for my previous solution.

    You could use
    to break for each 15 characters.

    Example if you string result is 1234567890123456. It gone be 123456789012345
    6

    Here some snippets code:

    string myString = "mondayfridaysaturday";
    string result = string.Empty;
    for (int i=0; i") : myString[i].ToString();
    

提交回复
热议问题