simple datagrid help

S

Steve

Hi know this is a simple question but i've looked at a number of
examples and all have used data binding I'm just trying to manually
for a test do the following


header1 text1 Headerw text2
text1 text2

i've tried this

DataGrid1.Columns(0).HeaderText = "Headter text1"
DataGrid1.Columns(1).HeaderText = "Headter text2"

then tried to add the row text
DataGrid1.Items.Item(0).DataItem = "text1"
DataGrid1.Items.Item(1).DataItem = "text2"


Neither works could someone show me so really basic code here

MY head hurts
Thanks
Steve
 
S

Steve

If i new how to do that I would not ask, what would this take four
lines aare so of code, tohelp me thaks anyway
 

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

Top