i am trying to get the code posted by Mike Gold @ C-shaprcorner -
Printing a Datagrid woking but am having some problems....to start with i dont know C#...am a vb guy...so i used a C# -> Vb.net converter and got the code in vb....
the article seems to be using a lot of properties of the datagrid that dont exist...for xample :
Public Sub DrawHeader(ByVal g As Graphics)
Dim ForeBrush As New SolidBrush(TheDataGrid.HeaderForeColor)
Dim BackBrush As New SolidBrush(TheDataGrid.HeaderBackColor)
Dim TheLinePen As New Pen(TheDataGrid.GridLineColor, 1)
......
datagrid does not have any property "HeaderForeColor"...it is Headerstyle.forecolor...there are atleast a few dozen such errors in the entire article...is there anyone here successfully using the piece of code by Mike Gold...
thanks in advance,
dinakar