I am trying to switch from Delphi to C# anf things are generally going very well.

However, I'm stumped when it comes to displaying non-database data in a grid.

The most logical control seems to be datagridview but I don't understand how to access the individual cells of the grid with unbound data.

Suppose I want a 2X2 grid to look like this and I simply want to enter the data programattically

HELLO WORLD
WHAT'S UP

Could someone give me a tip on accessing data in the individual cells?

Thanks,

Mac

I've figured it out

dataGridView1.Rows[R].Cells[C].Value = "Hello"
dataGridView1.Rows[R].Cells[C+1].Value = "World"

Thanks,

Mac