How to set ellipses on a column data
I have the following BoundField
in my GridView:
You seem to be modifying this where you could not store it back to the database anyway so I would just handle it like this unless they need an option to then see the entirety of the data.
I did all this c# in this editor so there might be slight problems, lets call it psuedo code!
string provider = item["Provider"].ToString().Replace("#", "\n").TrimStart(';');
string[] providerListing = provider.Split(new[]{";"}, StringSplitOptions.RemoveEmptyEntries));
if(providerListing.Length > 3)
{
//Make an array of the first 3 providers
string[] firstProviders = new string[3];
Array.Copy(providerListing, firstProviders, 3);
//Reconcatenate with ; and add ellipsis
provider = String.Join(";",firstProviders)+"...";
}
If they do need to see the entirety of the data I would add another column called FullProviders or something like that to query.