which is best possible way to add data source to data grid
when the data is huge(10 lack recored)how to edit a
perticular row

Answer Posted / vyas pyk

by using the sqldatasource bind the datagrid obviously we
will be having a primarykey for that particular table, and
after that put a tick mark on the "Allow Editing" option on
tha grid smart tag.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which browsers support the xmlhttprequest object?

712


Can we create a multiple user simultaneously ?

812


What is viewstate parameter?

725


Can you explain the importance of finalize method in .net?

808


How you can access the properties and controls of master pages from content pages?

732


Explain About duration in caching technique

838


How does http session work?

742


What are the different authentication modes in asp.net?

730


What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

1645


Explain the server control events of asp.net ?

748


What are the differences between clr & cts?

744


What is viewstate in asp net with example?

731


What is the server of asp.net?

744


Hi this is the coding for adding data in to an xml table i want the coding for update and delete Try Dim emp_xml_doc As New XmlDocument If System.IO.File.Exists(Server.MapPath("emp.xml")) Then emp_xml_doc.Load(Server.MapPath("emp.xml")) Dim myrow_element As XmlElement myrow_element = emp_xml_doc.CreateElement("EmpDetails") Dim str As String str = "" & TxtEmpId.Text & "" & _ "" & TxtName.Text & "" & _ "" & TxtSalary.Text & "" myrow_element.InnerXml = str emp_xml_doc.DocumentElement.AppendChild(myrow_element) emp_xml_doc.Save(Server.MapPath("emp.xml")) Response.Write("Record Saved") Dim ds As New DataSet ds.ReadXml(Server.MapPath("emp.xml")) GridView1.DataSource = ds GridView1.DataBind() Else Response.Write("File does not exist.") End If Catch ex As Exception Response.Write(ex.ToString) End Try *********************** this is the xml file 100 xxx 2000 yyy dddd 77777 rrrr rrrr 6666 qaqa sini 50000 errrrrrrrr rrrrrrrrr 677777 rrr rrr 33

1941


What is bound controls

785