Updating WinForm DataGrid Control in .Net 2003
I am using VS 2005 and VS 2008 and never asked this question, but now I find it difficult to use the controls in VS 2003. The DataGridView does not exist and I am forced to use the DataGrid control to display some data. The problem is that I want to edit some of the values displayed by this control and reflect those changes in the database, and I can't find a way to achieve this. Already "googled", no relevant results found, so please give me a little help. I am coding in C #.
+1
a source to share
4 answers
You can use listview to display data from database. You can bind the items listview source to the list you get from the DB. You can also make the listview editable.
If the list is not enough, you can use WindowsFormHost like
System.Windows.Forms.FlowLayoutPanel advancedFlowLayoutPanel =
this.flowLayoutHost.Child as System.Windows.Forms.FlowLayoutPanel;
advancedFlowLayoutPanel.WrapContents = true;
Inside it, you can put a DataGrid.
0
a source to share