I have a class called classA which the constructor used to accept a DataGridView argument.
Like so:
public class classA {
readonly DataGridView thisClassData = default(DataGridView);
public classA(DataGridView someData){
Init();
thisClassData = someData;
}
}
I am making a call elsewhere like this:
classA classA_obj = classA(otherDataGridView.SelectedRows[0]);
I have now converted everything to use DevExpress, so in ClassA, I have changed DataGridView to GridView, however, I do not know how to pass in the selected rows as GridView. Can someone show an example of how this can be achieved?
otherDataGridView.SelectedRows[0]return the value of typeDataGridViewRow. It's unclear how you are using this:classA classA_obj = new classA(otherDataGridView.SelectedRows[0]);because it does not compiles. What the type ofotherDataGridViewvariable? - nempoBu4