I am new to C# and am not experienced in creating complex methods. I need to create a class that will input data into a DataGrid with set number of columns but an unknown number of rows. This method would need to use either SetText or TypeKeys in the designated cells.
column examples:
column 1: Phase ID
column 2: Cost Code ID
column 3: Number of Units
column 4: Expenses
column 5: Revenues
I know that when I try to declare the cells, it is (column:row). The problem is I am unsure how to populate specific cells (for example: Phase ID, Expenses and Revenue only) with data that is passed into the method. Also the Phase ID and Cost Code ID have a PushButton for a drop list. The DataGrid class doesn't seem to have this functionality. Please help!