We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

some questions about datagrid

I've some questions about windows datagrid control. 1.Can I format numerical data in column? 2.Can I prevent sort of only some columns? 3.Can I prevent the resize of only some columns? 4.Can I retrieve if data change and in what cell? 5.Can I change the cursor for only some columns? Thanks a lot Paola Vincenzi

3 Replies

SA Sameer June 5, 2003 01:50 PM

YES > I've some questions about windows datagrid control. > > 1.Can I format numerical data in column? > 2.Can I prevent sort of only some columns? > 3.Can I prevent the resize of only some columns? > 4.Can I retrieve if data change and in what cell? > 5.Can I change the cursor for only some columns? > > Thanks a lot > > Paola Vincenzi >


PA paola June 6, 2003 03:42 AM

Thanks for your reply.... but How can I do these things?? sorry for my bad english..... Paola > YES > > > I've some questions about windows datagrid control. > > > > 1.Can I format numerical data in column? > > 2.Can I prevent sort of only some columns? > > 3.Can I prevent the resize of only some columns? > > 4.Can I retrieve if data change and in what cell? > > 5.Can I change the cursor for only some columns? > > > > Thanks a lot > > > > Paola Vincenzi > > >


MI mike June 9, 2003 09:04 AM

To create new columnstyles, 1. Create a new class 2. Inherit from the DataGridTextBoxColumn. 3. Format it as you wish. 'short example Public Class DataGridDateColumnStyle Inherits DataGridTextBoxColumn Public Sub New() MyBase.Format = "d" End Sub End Class 'DataGridDateColumnStyle > Thanks for your reply.... but How can I do these things?? > > sorry for my bad english..... > > Paola > > > > YES > > > > > I've some questions about windows datagrid control. > > > > > > 1.Can I format numerical data in column? > > > 2.Can I prevent sort of only some columns? > > > 3.Can I prevent the resize of only some columns? > > > 4.Can I retrieve if data change and in what cell? > > > 5.Can I change the cursor for only some columns? > > > > > > Thanks a lot > > > > > > Paola Vincenzi > > > > > >

Loader.
Live Chat Icon For mobile
Up arrow icon