Jump to content

Customizing datagrid column text


Bhushan

Recommended Posts

Hi,I have a datagrid populated with 3 rows and 3 columns. for the thirs column the text is big ( nearly 50 rows). I want to display only 10 rows in this cell. How can i do that?. Please let me know.Thnx,Bhushan.

Link to comment
Share on other sites

Hi,I have a datagrid populated with 3 rows and 3 columns. for the thirs column the text is big ( nearly 50 rows). I want to display only 10 rows in this cell. How can i do that?. Please let me know.Thnx,Bhushan.

Is it 50 lines or 50 rows???You said you have a datagrid with 3 columns and 3 rows, how can the 3rd column then have 50 rows???Please post the code you use to populate the datagrid (both .aspx and codebehind(.aspx.cs))if you ment 50 lines of text in the 3rd column you can use the Substring() function to take only a certain number of characters and cut the rest off.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...