Can some enlightened one please help me!! :cheesy:

How do i place a value into a datagrid cell. It is an unbound datagrid and i have fetched some values from a database using a dataset. Now i want to place that value in the datagrid.

Also, how do i add another column to the datagrid. For eg. i have to include a 'total' column which is calculated using two other columns, 'unit selling price' and 'qty'.

please help

u r working with unbound datagrid , first u will have to create a datatable with a particular schema and add all the column u need to show on datagrid it will be easy and effective work to place data into datagrid with the use of datatable finally add that table in datagrid.datasource property and u will find your data in datagrid in a very well manner.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.