Link to home
Start Free TrialLog in
Avatar of ict-torquilclark
ict-torquilclark

asked on

DataGridView display member

I have a datagrid view setup that pulls data from a dataset.

Is there a way I can change the way that the column displays the data. For instance I have a column "Salary" set as datatype double. this may show as 20000.00. can I do something like concatenate a "£" onto the start of the field?
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ict-torquilclark
ict-torquilclark

ASKER

I have added the code that you have suggested into the form.load event handleer and recieved the following error...

Object reference not set to an instance of an obeject

?
But after the datagridview is loaded ? Check if the name of the column is correct ... you can try to use the column index instead of the name.
sorry about that my fault.

I had accidentaly removed the column from the datagridview.

I added it back in and its working fine now.

Thanks