cell-formatting

format cell of datagridview to show substring of column text in vb.net

i have a column item-code, inside my database which i have bound to a datagrid view. The item-code comes in this format "A-B-C", i wish only to show the "B" part of the code, i have bound this column to the gridview and now wish to make it show the substring. I tried defaultcellstyle.format but don't know how to get a substring for it. ...

How to format radgrid cell programmatically

I have to format (backcolor, forecolor, font style) a radgrid's cells depending on the value of the cell. For example If the value is negative set the fore color of that cell as red. Can any one please tell me how this can be achieved? ...