notAdmin 0 Newbie Poster

how to set the domainupdown.Items with data from selected column datagridview?
as far as i know, first get the data from datagridview:

string[] myData = null;
for (int i=0; i<datagridview.rows.count; i++)
{
    myData[i] = convert.tostring(datagridview.rows[i].cells[0].value.tostring();
}

how to set the domainupdown.Items = myData?

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.