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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

questions of datarow

Thread ID:

Created:

Updated:

Platform:

Replies:

1596 Nov 13,2002 03:00 PM UTC Dec 1,2002 04:18 AM UTC WinForms 2
loading
Tags: FAQ
ying
Asked On November 13, 2002 03:00 PM UTC

I met a few questions when I use datagrid. 1.When I use dataview as a datasource instead of dataset. The tablestyle property doesn't work. So how to customer each column style as I wanted. 2. If I use dataset/data table as a datasource. I can define the table style for the grid. However, i couldn't control the new row. I hope i can add a new row by program instead of appear automatically. Is there a way to prevent the newrow appear? 3. Is there a way to write multiple lines in the column header? 4. When double click the mouse while the mouse cursor is in between two rows (resize the row heights). There is always an out of index exception. how to prevent that? Thanks

Abraham Luna
Replied On November 15, 2002 06:31 PM UTC

> I met a few questions when I use datagrid. > 1.When I use dataview as a datasource instead of dataset. The tablestyle property doesn't work. > So how to customer each column style as I wanted. > > 2. If I use dataset/data table as a datasource. I can define the table style for the grid. However, i couldn't control the new row. I hope i can add a new row by program instead of appear automatically. Is there a way to prevent the newrow appear? first set the addnew property of the defaultview to false before binding the datagrid to the datatable. like this: dtDataTable.DefaultView.AddNew = False dgDataGrid.DataSource = dtDataTable > > 3. Is there a way to write multiple lines in the column header? i'm not sure > > 4. When double click the mouse while the mouse cursor is in between two rows (resize the row heights). There is always an out of index exception. how to prevent that? > if you find the answer let me know :) at abe@attilanet.com > Thanks

UESTC
Replied On December 1, 2002 04:18 AM UTC

> 3. Is there a way to write multiple lines in the column header? Maybe you can build a new class which inherit from DataGridTextBoxColumn, then use your own class instead of the origin DataGridTextBoxColumn.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;