Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > ... cannot be set on a data-bound DataGridView control
 

... cannot be set on a data-bound DataGridView control

Hello,

I am begginer and i Have application that is displaying querries in datagridview. But in some part of application i want to display more custom data (SUMS, SUM of certain column where only negative numbers aresummed etc.). I am displaying more simple data with :

grdDataAll.AutoGenerateColumns = True

grdDataAll.DataSource = objDataSet

grdDataAll.DataMember = "my table"

and more custom data with manually filling same dataGgridView from scratch..

I got error: cannot be set on a data-bound DataGridView control.

is there any vay to change that property or i will have to use two dataGridViews on same place, one for data-bind use, another for manually adding rowsets,changing their visibility..?

Thank you, and sorry for language etc...

Gregor Jovan  Wednesday, June 14, 2006 8:50 AM

sorry, i found out - it was to easy.. probably

grdDataAll.columns.clear()
grdDataAll.DataSource=Nothing
grdDataAll.DataMember=Nothing

Gregor Jovan  Wednesday, June 14, 2006 11:48 AM

sorry, i found out - it was to easy.. probably

grdDataAll.columns.clear()
grdDataAll.DataSource=Nothing
grdDataAll.DataMember=Nothing

Gregor Jovan  Wednesday, June 14, 2006 11:48 AM

You can use google to search for other answers

Custom Search

More Threads

• DataGridView - Invisible Cell Error Update
• how to do validation in datagridview (windows application)
• Textbox_TextChanged
• DataGridViewComboBox - semi-automatic drop-down problem
• ListView Virtual data from disk
• GetChildRows and DataGridView
• Problem in double click event of datagrid
• single row
• Performance problems when affecting BindingList to DataGridView
• Lower case 'q' keystroke doesn't work inside a Custom Cell of Data Grid View control