Hello, how do you get data from an individual cell from a datagrid (not datagridview)

Hmm, Is it not the same method for the non-compact?

// SELECT FName, LName, ID FROM Employee
int row = dataGrid.CurrentRowIndex;
dataGrid.Select(row);
string FName = ds.Tables["Employee"].Rows[row].ItemArray.GetValue(0);
string LName = ds.Tables["Employee"].Rows[row].ItemArray.GetValue(1);
string ID = ds.Tables["Employee"].Rows[row].ItemArray.GetValue(2);

Forgive syntax errors code not tested.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.