hi,
i have a datagrid in my application, it has 3 coloums namely s.no, name and details. but actually what i need is that the data in the details column should not appear completely i.e it should display characters upto a certain limit and rest of the characters should appears as "..."(ex 1 john student of cali...). please tell me whether its possible if possible what should i do
Thanks in advance
Regards,
bhavani
Posted Sep 26, 2008, 2:14 AM
Apply following steps:
1. Create a function in code behind.
2. In that function as per your convenience check the length of column data and if data length is grater you limit, use sub string and add dummy character "..." in the end of substring
3. Use this function in the .aspx file while you bind data filed with the grid column
Hope this will help you. if you need code then reply me i will send you the code