Hello,
I need to add checked cell value to Datatable.My code is below.But every time when I check cell it add only selected cell value.Currently selected.Not all selected cells values.May be problem in event(cell_change)?Help please.
private void ultraGrid3_CellChange(object sender, CellEventArgs e) {
DataTable dt = new DataTable(); dt.Columns.Add("Fields",typeof(String)); DataRow row = dt.NewRow(); row[0] =e.Cell.Row.Cells["Selected_Fields"].Value.ToString(); dt.Rows.Add(row); return dt;
this.ultraGrid4.DataSource = dt; }
Looking at your requirement and code sample, I am not able to catch what you are after. Creating a datatable in this particular event does not make sense to me. And how are you returning an object in a void method? This method does not have a return type and therefore it cannot return anything.
If you can tell me your exact requirements I will create a sample project for you.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.