DataTable MyTable = new DataTable(); // 1
DataTable MyTableByName = new DataTable("MyTableName"); // 2
MyTable.Columns.Add("AMBAR", typeof(string));
int[] SROWSdublicate = _gv_SARFFISI_.GetSelectedRows();
for (int i = 0; i < SROWSdublicate.Length; i++)
{
MyTable.Rows.Add(_gv_SARFFISI_.GetRowCellValue(SROWSdublicate[i], "Ambar").ToString());
//dr["AMBAR"] = _gv_SARFFISI_.GetRowCellValue(SROWSdublicate[i], "Ambar").ToString();
//dt.Rows.Add(new object[] { "Ravi", 500 });
// dt.Rows.Add(dr);
}
DataTable MyTableByName = new DataTable("MyTableName"); // 2
MyTable.Columns.Add("AMBAR", typeof(string));
int[] SROWSdublicate = _gv_SARFFISI_.GetSelectedRows();
for (int i = 0; i < SROWSdublicate.Length; i++)
{
MyTable.Rows.Add(_gv_SARFFISI_.GetRowCellValue(SROWSdublicate[i], "Ambar").ToString());
//dr["AMBAR"] = _gv_SARFFISI_.GetRowCellValue(SROWSdublicate[i], "Ambar").ToString();
//dt.Rows.Add(new object[] { "Ravi", 500 });
// dt.Rows.Add(dr);
}