Manipulating a datagrid string ?

Results 1 to 2 of 2

Thread: Manipulating a datagrid string ?

  1. #1
    Join Date
    Dec 1969

    Default Manipulating a datagrid string ?

    hey guys, in my datagrid, i have a "ButtonColumn" that looks like this...<BR><BR>&#060;asp:ButtonColumn DataTextField="desc_txt" HeaderText="Description" ButtonType="LinkButton" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="400" /&#062;<BR><BR><BR>my question is, in my code behind page, how do i parse desc_txt to only show the first 15 or so characters and then append a "..." at the end instead of just puking up the entire description from the database<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Manipulating a datagrid string ?

    inside your stored proc return that field like this:<BR><BR>select left(fieldName,15) + &#039;...&#039;<BR>from table

Posting Permissions

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