How do I add row data directly to a DataGrid Class?

Posted by Zhang JingChu under C# on 10/4/2011 | Points: 10 | Views : 1590 | Status : [Member] | Replies : 1
How do I add row data directly to a DataGrid Class?

I am using a free opensource class from a company that I will not name (even if it is RadiantQ) that I like a lot. It has this cool MuttiColumnTreeList control that is a combination of a tree control and a datagrid. It comes with an example code that you can look at and everything. It is pretty cool. It is inherited from the DataGrid class.

The problem is that I am kind of new to databinding on this level and so I would like to just go ahead and write some code that forces the data that I have gathered from another class into the control.

So I looked online for how to do that for a DataGrid class and the information is not easily available. Can anyone help?


Posted by: Ketvin on: 10/7/2011 [Member] Starter | Points: 25

in DataGrid, u can add new row programmatically by adding new DataGridItem to the controls collection.

to add datagrid Item to control refer this ..

Zhang JingChu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response