Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1380
Ultragrid checkbox column
posted

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;
}

Parents
  • 71886
    Offline posted

    Hello,

    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.

Reply Children
No Data