float do decimal

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

I have a variable in sql table with float type.
I would like to read a value to numericTextBox in my Application.

Hrcko
 
Code will be something like

numericTextBox.Text = Convert.ToInt (
(double)dataRow["floatColumn"]).ToString();

What do you mean by numericTextBox? Is it from msdn samples? That
textbox checks IsDigit only on key press, so setting the .Text property
with a '.' should be fine.
 
Back
Top