Stringlength in datagrid

Results 1 to 2 of 2

Thread: Stringlength in datagrid

  1. #1
    Join Date
    Dec 1969

    Default Stringlength in datagrid

    C#: <BR>I have a datagrid that displays stringvalues and I need to limit the length of the strings in one of the datagrids columns.<BR>Is there anyway I can do this by perhaps a foreach-loop or other ways to go through the values and control the substring-values ? I have struggeled with this problem for some time and cannot find a proper value for the "Data Formatting Expression" in the datagrids propertybuilder. Therefore I&#039;m seeking possible soultions to use in code view. Any ideas ?<BR><BR>C:)

  2. #2
    Join Date
    Dec 1969

    Default RE: Stringlength in datagrid

    There was a recent article about creating TemplateColumns to do this on 4Guys within the last fortnight, perhaps take a look at that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts