Hi,
You can probably do so by implementing a custom DataGridColumnStyle with
overridden methods responsible for retrieving data from and updating data in
the bound datasource. The retrieval method will simply return the passed row
number, and the update method will not obviously update anything.
An alternative way could be doing custom drawing on row headers by
post-processing the grid's Paint event.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
BlueFox said:
Hi :
When i display the DataBase in System.Windows.Forms. DataGrid ,i
want
to
display the line number of ever line .How can i do it ?
Any help may be Good .