forum.venkateswarlu.net
      Register      Login
datatable

1 replies to this topic

Saravanan Ramamoorhty #1
Member
58 Points
Posted on 21 Jan 2012 08:16 PM IST how to assign a datatable to a variable 
Dot Net     858 views     Reply to this topic
Suman Battu #2
Member
34 Points
Replied on 13 Feb 2012 11:05 AM IST I think Ur question is not clear , to assign datatable to a variabl is as

datatable getdata = new datatable();
getData= Getdata.tables[0]; // we get it dataset from Database
Session["GetData"]= getData;
----------
if u want to assign perticular column to a variable
string name = getdat.tables[0].rows[0]["Name"].tostring(0); [Name is column name in datatable] 
Reply to this topic