i have a datagrid populated from an Oracle datbase and the last cell for each row is a number. i want to loop through each item and add up all the numbers i tried; long total = total + long.pasre(datagrid.items[loop].cells[6].Text) but i get the error "input string was not in correct format" can anybody help? the row in the oracle table is a number in case that helps? Thanks Colin :confused:
Colin Mc
Posts
-
long.Parse of datagrid cell value -
finding the contents of a cell in a datagridHave you tried using a hyperlink column? Not sure if this will work for you but you could have column 1 with text 'View Details' and have this as a link to another page displaying the customer info. Something like this... private void DataGrid1_SelectedIndexChanged(object sender, System.EventArgs e){ //cast to dataGrid as that is what you are using DataGrid grid = (DataGrid)sender; //redirect to page you display customer info in passing customer number from column 1 (column 0 is your hyperlink column) string page = "newpage.aspx?id=" + grid.Items[grid.SelectedIndex].Cells[1].Text; Response.Redirect(page,true); } Just an idea! Colin
-
Web Service Responce sizeI want to get the size of the responce from a web service and compare this with the size of a responce from a local function. Does anybody know how i might do this? Code samples appreciated Thanks in advance Colin McAdam (.NET wanabe)
-
Web Service responce sizeI want to get the size of the responce from a web service and compare this with the size of a responce from a local function. Does anybody know how i might do this? Code samples appreciated Thanks in advance Colin McAdam (.NET wanabe)