Answer Posted / kamalakannan.a
If we use c#
DataTable dt=new DataTable();
DataColumn Dc1 = new DataColumn("No", Type.GetType
("System.Int32"));
dt.Columns.Add(Dc1);
//Set Primary key
DataColumn[] dc = new DataColumn[1];
dc[0] = dt.Columns["No"];
dt.PrimaryKey = dc;
Kamal..
Is This Answer Correct ? | 34 Yes | 7 No |
Post New Answer View All Answers
What is method to get XML and schema from Dataset? getXML() and get Schema ()
How to add a check box or a dropdown list to a column in a datagrid?
What is microsoft ado?
How do you find the count of records in a dataset?
Does sqlclient and oledb class share the same functionality?
Define the data provider classes that is supported by ado.net?
What are the uses of Stored Procedure?
What is the difference between typed and untyped dataset?
What are the disadvantages of using datalist?
What is a column variable?
Can we do database operations without using any of the ado.net objects?
What is ole in vb?
What are advantages of microsoft-provided data provider classes in ado.net?
What is oledb connection?
What are three methods for displaying data in a syncfusion datagrid