DataGrid..Assign Runtime Values?
-
Hi Folks, I have 3 datagrids on a same webform. I want to assign a value to 3rd datagrid's specific cell on DataGrid2's SelectedIndexChanged event. How can I do this? Is it possible to do this on Runtime? private void DataGrid2_SelectedIndxChanged(object sender, System.EventArgs e) { //Assign a specific value to DataGrid3 } Thanks in advance and King Regards
-
Hi Folks, I have 3 datagrids on a same webform. I want to assign a value to 3rd datagrid's specific cell on DataGrid2's SelectedIndexChanged event. How can I do this? Is it possible to do this on Runtime? private void DataGrid2_SelectedIndxChanged(object sender, System.EventArgs e) { //Assign a specific value to DataGrid3 } Thanks in advance and King Regards
i'm not sure about it for datagrid because am using datagridview. but any way try this: datagrid.Rows[2].Cell[1].Value= "any value"; Best of Luck. _____________________________ Success is not something to wait for, its something to work for.