AD
Administrator
Syncfusion Team
February 6, 2005 08:10 PM UTC
Ken,
row 0 is the row with column headers.
row 1 is your first row with data.
row 2 is the AddNew row.
Stefan
>I''ve written QueryCellFormattedText and SaveCellFormattedText handlers to format a uint to/from hexidecimal format. I ran into problems because although there is only 1 row in the grid, my handler is called with row==0, row==1, row==2. Can you tell my why? Here''s my code:
>
>private void dbgBoardsModel_QueryCellFormattedText(object sender, GridCellTextEventArgs e)
>{
> int row = e.Style.CellIdentity.RowIndex;
> int col = e.Style.CellIdentity.ColIndex;
> if (col == iBoardBaseAddressColIndex)
> {
> try
> {
> uint ui = (uint) e.Value;
> e.Text = ui.ToString("x");
> }
> catch (Exception ex)
> {
> string str = ex.Message;
> }
> e.Handled = true;
> }
>}