G Guest Dec 30, 2003 #1 How can i set values to columns in a some particular row of a datagrid? Thank you
L Les Smith Jan 2, 2004 #2 In VB.NET, there are several ways to do this. 1) dg.DataSource.Rows(i).Item("Column_Name") = "ValueToSet" 2) dt.Rows(.CurrentCell.RowNumber).Item("Col_name") = "Value" To learn how to format cells, suggest you look at the article at http://www.knowdotnet.com/articles/cgrid.html There are many other articles there on ado.net. Hope this helps. Articles, general .NET, ado.net, add-ins, books, free code at http://www.knowdotnet.com
In VB.NET, there are several ways to do this. 1) dg.DataSource.Rows(i).Item("Column_Name") = "ValueToSet" 2) dt.Rows(.CurrentCell.RowNumber).Item("Col_name") = "Value" To learn how to format cells, suggest you look at the article at http://www.knowdotnet.com/articles/cgrid.html There are many other articles there on ado.net. Hope this helps. Articles, general .NET, ado.net, add-ins, books, free code at http://www.knowdotnet.com