如何从一种形式传递价值 [英] how to pass value from one form

查看:83
本文介绍了如何从一种形式传递价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在做一个项目.场景是这样的:::
我有一个包含5个项目的数据网格,这五个项目的名称为1)s.no 2)图书代码3)图书标题4)type 5)category
1位数-0001面向数字书的对象
2 xyzzz-0002杂志CD网页设计

我有两个格式相同的过滤器..1个过滤器仅用于过滤类别,其他过滤器用于过滤该类别的特定标题.当用户只想查看书籍和CD的类别时,可以使用过滤器类别..doing这些类别已被过滤..现在,他们只想打印书籍代码,即特定数据网格的数字-0001..


我已经实现了itextsharp来打印..so,所以请给我一个想法,如何只将选定的行传递给print

currently , I am doing a project. and the scenario is like this :::
i have one data grid which contains 5 items and the name of these five items are 1)s.no 2)book code 3)book title 4)type 5)category
1 digit-0001 Digit Book object oriented
2 xyzzz-0002 Magazine CD webdesign

and i have two filter in same form .. 1 filter uses to filter category only and other filter is used to filter particular title of that category .when user want to see only category of book and CD they can filter using filter category ..doing these category gets filter..now they want to print only book code i.e digit -0001 of that particular data grid..


i have implemented itextsharp to print ..so please give me an idea how to pass selected rows only to print

推荐答案

我知道您想使用以下内容过滤记录给定的标准.

您可以使用Dataview来过滤来自Datagrid源(即Datatable)的记录,并在Dataview中获得所需记录(即值)时将其与Datagrid绑定.

如果这不是标准,请遵循"OriginalGriff"
what I understand is you wanted to filter your records with the given criteria.

You can use Dataview for filter records from Datagrid source (i.e. Datatable) and when you got required records (i.e. values) in the Dataview bind it with the Datagrid.

If this is not the criteria then follow "OriginalGriff"


这篇关于如何从一种形式传递价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆