1
Answer

n which Namespace the ObjectList class present

sreenugotla

sreenugotla

20y
1.8k
1
Hi, I am using chat application using Remoting, ie from the following site http://www.c-sharpcorner.com//internet/remoting_chat_server.asp i download the zip file of Remotingchat, in that the file ChatServerImpl consists of some code ie public class ChatServerImpl : MarshalByRefObject,ChatServer { private ObjectList chatters = new ObjectList(); when i compile it is giving an error ie ObjectList class is not found. I am expecting the ObjectList class is from System.Collection Namespace but in that namespace there is no class with the name ObjectList. I want to know in which Namespace the ObjectList class is present. For overcomming the error.
Answers (1)
0
Suthish Nair

Suthish Nair

NA 31.7k 4.6m 14y

Use Linq to datatable, refer sample.
DataTable dtMain = new DataTable();
DataTable dt1 = new DataTable();
//bind datatable
var rows1_10 = from item in dt1.AsEnumerable()
     select item;
var top1_10 = rows1_10.Take(10);
//do a for-loop and insert into dtMain
DataTable dt2 = new DataTable();
//bind datatable
var rows2_10 = from item in dt2.AsEnumerable()
     select item;
var top2_10 = rows2_10.Take(10);
//do a for-loop and insert into dtMain
0
Rajesh Kumar

Rajesh Kumar

NA 66 0 14y

Hi Purna,
Try to create  two temp datasets with a datatable containing 10 rows. and bind these two dataset to gridviews seperately.
Thanks
Rajesh