Jump to content

if & DataGridView in C#

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Coder_Abdul

Coder_Abdul

    Newbie

  • Members
  • Pip
  • 8 posts
how i can use if with DataGridView ?


Posted Image


i want to use it , when user click save item , if row is empty show error message

#2
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
how did you define your column names

#3
Coder_Abdul

Coder_Abdul

    Newbie

  • Members
  • Pip
  • 8 posts
i got it from DataSet ...

#4
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
i will give you the clue...
if(C_number == "" || W_number =="" ||...){
MessageBox.Show("You missed something");
}

#5
Coder_Abdul

Coder_Abdul

    Newbie

  • Members
  • Pip
  • 8 posts
i know this , but it's not ok with DataGridView ...




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users