Wednesday, August 11, 2010

How to acess check box in a datagrid?

In first form we had retrived value from database and binded it in datgrid.It has check box within it.


In second form we must display only the selected item from the form 1.


for ex.


In form 1 we had displayed all the fields of order table from pubs database.Suppose i select orderId,Orderdate.Only these two things must be displayed in a second form...


Hope i am clear in my question...


Plz help me out..


thanks in advance...


It's very urgent...How to acess check box in a datagrid?
As you don not provide code I am suggesting you to use Template Field in Datagrid. You can find the templete option by right clicking on the datagrid. Now in order to bind the data field with checkbox you have to eval(';yourfieldname';) in case of one way binding(To view only) and bind(';yourfieldname';) in case of two way databinding(to view and modify record';). Reply me if your problem is solved or not. I will give you more detailsHow to acess check box in a datagrid?
in other form,


write a sql connection with this query


';select orderid, ordername from Orders where orderid= ';+int.parse(Session(';field';) )


use this dataset in 2nd form
Check out this sample http://www.dotnetjohn.com/articles.aspx?鈥?/a>

No comments:

Post a Comment