Setting items to datagrid column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can i set values to columns in a some particular row
of a datagrid?


Thank you
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top