I have a grid with column6 being a combobox. Using Q212 c#. I want to p
rogrammatically load vaules into the combobox during form load. I cannot seem to find a method to do this. I see examples when one is creating the column on the fly, but my columns are already defined. Also how do select a default value to show in the combobox.
I also want to have another column in the same grid to be a calculation based on other cells in the same row. How do I go about that?
Why won't this code fill a gridview that has 4 decimal controls?
decimal[] row31 = new decimal[] { 1, 120, 1000, 100 };
decimal[] row32 = new decimal[] { 2, 120, 1000, 100 };
decimal[] row33 = new decimal[] { 3, 120, 1000, 100 };
object[] rows3 = new object[] { row31, row32, row33 };
foreach (decimal[] rowArray in rows3)
{
radGridView1.Rows.Add(rowArray);
}
Thanks in advance.