Adding items to datagrid/Uploading files
hey all
2 qiestions:
1 => i want to add items to a data grid from a textbox
i tried to use to add a item:
DataGridItem dgitem = new DataGridItem(1, 1, ListItemType.Item);
ItemsGrid.Controls.Add(dgitem);
and to add a column:
DataTable dt = new DataTable();
DataRow dr;
dt.Columns.Add(new DataColumn("2", typeof(string)));
dr = dt.NewRow;
dr[0] = "TEST";
but nothing seems to work...
----------------------------------"-----------------------------------
2 => i wanna filter files extentions(pdf and tiff) in the Web Config file... im searchig for a file using the UploadFile input
can someone help me?
tkz in advance
/PT
|